New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

derequire

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

derequire - npm Package Compare versions

Comparing version 0.0.0 to 0.1.0

test/test.js

9

package.json
{
"name": "derequire",
"version": "0.0.0",
"version": "0.1.0",
"description": "remove requires",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "./node_modules/istanbul/lib/cli.js test ./node_modules/mocha/bin/_mocha test/test.js"
},

@@ -23,3 +23,8 @@ "repository": {

"escodegen": "~1.0.1"
},
"devDependencies": {
"chai": "~1.8.1",
"mocha": "~1.16.2",
"istanbul": "~0.2.1"
}
}

@@ -13,2 +13,2 @@ derequire

takes a string of code and replaces all instances of the identifier `tokenFrom` (default 'require') and replaces them with tokenTo (default '__derequire__'), returnes the code.
takes a string of code and replaces all instances of the identifier `tokenFrom` (default 'require') and replaces them with tokenTo (default '\_\_derequire\_\_'), returnes the code.
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