How to use the validateNodeName function from bindings

Find comprehensive JavaScript bindings.validateNodeName code examples handpicked from public code repositorys.

51
52
53
54
55
56
57
58
59
60
validateNodeName(name) {
  if (typeof name !== 'string') {
    throw new TypeError('Invalid argument');
  }

  let result = rclnodejs.validateNodeName(name);
  if (result === null) {
    return true;
  }
  throw this._createErrorFromValidation(result);
fork icon65
star icon254
watch icon27

Other functions in bindings

Sorted by popularity

function icon

bindings.createKey is the most popular function in bindings (8616 examples)