sct-cli

1.0.2 • Public • Published

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");

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i sct-cli

      Weekly Downloads

      2

      Version

      1.0.2

      License

      MIT

      Unpacked Size

      975 B

      Total Files

      3

      Last publish

      Collaborators

      • sc-98k