New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

auto-run-script

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auto-run-script

Auto run script by platform.

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

auto-run

A cli tool to run npm-scripts or script by platform.

Why

Sometimes, we need to run different script for different platform. Such as:

{
    "scripts": {
        "echo:win32": "echo \"run win script\"",
        "echo:linux": "echo \"run linux script\"",
        "echo:darwin": "echo \"run darwin script\""
    }
}
  • Before: you should run npm run echo:win32 or npm run echo:linux

  • With this: just run auto-run echo:*

Usage

auto-run [script] [OPTIONS]

run the script(or name) by platform

Options:
  --version               Show version number           [boolean]
  --win32, -w, --windows  script or name for windows    [string]
  --darwin, -m, --mac     script or name for mac        [string]
  --linux, -l             script or name for linux      [string]
  --help, -h              Show help                     [boolean]

FAQs

Package last updated on 18 Nov 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts