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

better-npm-run

Package Overview
Dependencies
Maintainers
3
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

better-npm-run - npm Package Compare versions

Comparing version 0.0.15 to 0.1.0

4

index.js
#!/usr/bin/env node
var program = require('commander'),
scriptName = process.argv[2];
var program = require('commander');

@@ -10,2 +9,3 @@ program

.parse(process.argv);
var scriptName = program.args[0];

@@ -12,0 +12,0 @@ if (!program.silent) {

@@ -12,3 +12,8 @@ var spawn = require('child_process').spawn,

var argv = process.argv.splice(3),
var argvIndex = -1;
firstArg = program.args[0];
if (firstArg !== undefined) {
argvIndex = process.argv.indexOf(firstArg);
}
var argv = argvIndex === -1 ? [] : process.argv.splice(argvIndex + 1),
command = (typeof script === 'string' ? script : script.command) + ' ' + argv.join(' ');

@@ -15,0 +20,0 @@

{
"name": "better-npm-run",
"description": "Better NPM scripts runner",
"version": "0.0.15",
"version": "0.1.0",
"license": "MIT",

@@ -23,3 +23,3 @@ "author": "Benjamin Orozco <benoror@gmail.com>",

"test:env-extend": "TEST_ENV2=envvar node index.js test:env-extend",
"test:params": "node index.js test:params --test",
"test:params": "node index.js --silent test:params --test",
"test:command:object": "node index.js test:command:object",

@@ -26,0 +26,0 @@ "test:command:string": "node index.js test:command:string",

@@ -129,3 +129,3 @@ [![NPM](https://nodei.co/npm/better-npm-run.png)](https://npmjs.org/package/better-npm-run)

```
bnr watch-client -s
bnr -s watch-client
```

@@ -136,3 +136,3 @@

```
bnr start-dev --path=/custom/path/to/your/env/vars
bnr --path=/custom/path/to/your/env/vars start-dev
```

@@ -143,5 +143,5 @@

```
bnr start-dev --encoding=base64
bnr --encoding=base64 start-dev
```
See [envdot docs](https://github.com/motdotla/dotenv) for more infomation

@@ -0,3 +1,6 @@

if (process.argv[2] === "--silent") {
throw new Error('it should eat extra arguments');
}
if (process.argv[2] !== "--test") {
throw new Error('it should accept params');
}
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