node-retrieve-globals
Advanced tools
Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "node-retrieve-globals", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "Execute a string of JavaScript using Node.js and return the global variable values and functions.", | ||
@@ -22,3 +22,7 @@ "type": "module", | ||
"ava": "^5.2.0" | ||
}, | ||
"dependencies": { | ||
"acorn": "^8.8.2", | ||
"acorn-walk": "^8.2.0" | ||
} | ||
} |
@@ -9,5 +9,20 @@ # node-retrieve-globals | ||
## Installation | ||
Available on [npm](https://www.npmjs.com/package/node-retrieve-globals) | ||
``` | ||
npm install node-retrieve-globals | ||
``` | ||
## Usage | ||
```js | ||
// const { ModuleScript } = require("node-retrieve-globals"); | ||
import { ModuleScript } from "node-retrieve-globals"; | ||
``` | ||
And then: | ||
```js | ||
let code = `var a = 1; | ||
@@ -14,0 +29,0 @@ const b = "hello"; |
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
5583
60
2
+ Addedacorn@^8.8.2
+ Addedacorn-walk@^8.2.0
+ Addedacorn@8.14.0(transitive)
+ Addedacorn-walk@8.3.4(transitive)