@nodescript/stdlib
Version:
Standard Node Definitions
20 lines (19 loc) • 405 B
JavaScript
export const module = {
version: '1.1.3',
moduleName: 'String / Length',
description: `
Returns the length of a string.
`,
keywords: ['size', 'count'],
params: {
string: {
schema: { type: 'string' },
},
},
result: {
schema: {
type: 'number',
}
},
};
export const compute = params => params.string.length;