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

sct-cli

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sct-cli

command line test

latest
npmnpm
Version
1.0.2
Version published
Maintainers
1
Created
Source

sct-cli

nitial project

npm init

add bin property

then add bin property in to package.json, note that only you do this can you make your command in your terminal, type the key of bin, the related js file will be proceed automatically.

"bin": {
  "my-cli": "./index.js"
}

edit index.js

#!/usr/bin/env node

console.log("hello world");

reference, npm update cmd

Keywords

cmd

FAQs

Package last updated on 18 Sep 2018

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