inspect-parameters-declaration
Advanced tools
Comparing version 0.0.7 to 0.0.8
@@ -165,2 +165,6 @@ 'use strict'; | ||
function getParametersNamesFromInspection(inspectedParameters) { | ||
return getAllInspectedParametersNames(inspectedParameters); | ||
} | ||
function inspectParameters(source) { | ||
@@ -180,2 +184,2 @@ if (!source) { | ||
module.exports = { inspectParameters, getParametersNames }; | ||
module.exports = { inspectParameters, getParametersNames, getParametersNamesFromInspection }; |
{ | ||
"name": "inspect-parameters-declaration", | ||
"version": "0.0.7", | ||
"version": "0.0.8", | ||
"description": "Inspects function's parameters declaration and returns information about it (e.g. names, default values, if needs destructuring, destructured parameters names and default values)", | ||
@@ -5,0 +5,0 @@ "main": "./lib/inspect-parameters-declaration.js", |
@@ -24,4 +24,8 @@ # inspect-parameters-declaration | ||
Where **source** is a *function* reference or a string containing the parameters declaration (e.g. 'a = "z, b = [1,2,3], c, {d,e: {f}, g} = {}') | ||
* **source** is a *function* reference or a string containing the parameters declaration (e.g. 'a = "z, b = [1,2,3], c, {d,e: {f}, g} = {}') | ||
`getParametersNames(inspectedParameters);` | ||
* **inspectedParameters** expects the result from `inspectParameters(source)`; | ||
```javascript | ||
@@ -28,0 +32,0 @@ const { getParametersNames, inspectParameters } = require('inspect-parameters-declaration'); |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15516
146546
413
83