scx-test

1.0.0 • Public • Published

build

initial project

npm init

add bin

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 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 scx-test

      Weekly Downloads

      0

      Version

      1.0.0

      License

      ISC

      Unpacked Size

      658 B

      Total Files

      3

      Last publish

      Collaborators

      • sc-98k