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

node-retrieve-globals

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-retrieve-globals - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

6

package.json
{
"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";

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