@nodescript/stdlib
Version:
Standard Node Definitions
17 lines (16 loc) • 381 B
JavaScript
export const module = {
version: '1.1.4',
moduleName: 'Json / Stringify',
description: 'Returns a JSON string representation of provided value.',
params: {
value: {
schema: { type: 'any' },
}
},
result: {
schema: { type: 'string' },
}
};
export const compute = params => {
return JSON.stringify(params.value);
};