Socket
Socket
Sign inDemoInstall

stringify-parameters

Package Overview
Dependencies
34
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    stringify-parameters

Stringifies function's parameters definition


Version published
Weekly downloads
56K
decreased by-9.58%
Maintainers
1
Install size
781 kB
Created
Weekly downloads
 

Readme

Source

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
npx stringify-parameters --help

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);

Keywords

FAQs

Last updated on 24 Oct 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc