Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

func-params

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

func-params - npm Package Compare versions

Comparing version 0.9.0 to 0.9.1

2

package.json

@@ -5,3 +5,3 @@ {

"description": "Run-Time Function Parameter Name Determination",
"version": "0.9.0",
"version": "0.9.1",
"license": "MIT",

@@ -8,0 +8,0 @@ "author": {

@@ -19,2 +19,8 @@

block for Dependency Injection or Named-Parameter implementations.
The underlying problem is that there is no official JavaScript API
to determine the names of the parameters of a function under run-time,
except the ECMAScript 2015 `Function.prototype.toString()`. This
library determines the names of the function parameters by parsing
the source code of `Function.prototype.toString()`. Its parsing is not
100%, but is able to handle even complex syntax scenarios.

@@ -21,0 +27,0 @@ Installation

@@ -27,3 +27,3 @@ /*

describe("FNA Library", function () {
describe("func-params library", function () {
it("should expose the official API", function () {

@@ -30,0 +30,0 @@ expect(funcParams).to.be.a("function")

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc