Files
Virtual-Box/.node-red/node_modules/stringify-parameters
2025-12-02 16:27:21 +00:00
..
2025-12-02 16:27:21 +00:00
2025-12-02 16:27:21 +00:00
2025-12-02 16:27:21 +00:00
2025-12-02 16:27:21 +00:00
2025-12-02 16:27:21 +00:00
2025-12-02 16:27:21 +00:00
2025-12-02 16:27:21 +00:00
2025-12-02 16:27:21 +00:00
2025-12-02 16:27:21 +00:00

stringify-parameters

Build Status

Stringifies function's parameters definition. Useful to create automated tasks, intellisense, .

Installation

npm install stringify-parameters

CLI

npm install stringify-parameters -g

Usage

stringifyParameters(fn);

Where fn is a function reference or a function definition stringified (e.g. fn.toString())

const stringifyParameters = require('stringify-parameters');

// Just a function to test
const testFunction = (a = "z", b = [1,2,3], c, {d,e: {f}, g} = {}) => console.log("noop");

// `result` will be: 'a = "z, b = [1,2,3], c, {d,e: {f}, g} = {}'
const result = stringifyParameters(testFunction);