Socket
Socket
Sign inDemoInstall

rins

Package Overview
Dependencies
33
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.2 to 1.0.0

.eslintrc

3

package.json
{
"name": "rins",
"version": "0.1.2",
"version": "1.0.0",
"description": "Run npm scripts interactively",

@@ -20,2 +20,3 @@ "bin": "./src/index.js",

"dependencies": {
"chalk": "^2.4.2",
"find-package-json": "^1.2.0",

@@ -22,0 +23,0 @@ "inquirer": "^6.3.1"

#!/usr/bin/env node
const finder = require('find-package-json');
const inquirer = require('inquirer');
const chalk = require('chalk');
const { spawn } = require('child_process');

@@ -26,5 +27,5 @@

...Object.entries(scripts)
.map(([name, command]) => ({
name: `${name} - ${command}`,
value: `run ${name}`
.map(([value, command]) => ({
name: `${value} ${chalk.gray(command)}`,
value
})),

@@ -40,3 +41,3 @@ {

if (script) {
const proc = spawn('npm', script.split(' '), {
const proc = spawn('npm', script.split(' ').shift('run'), {
stdio: 'inherit'

@@ -43,0 +44,0 @@ });

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc