Git Product home page Git Product logo

study-cli-app-coffee-shop's Introduction

파일 구조

  • bin: will contain all executable .js files
  • lib: contains other files which files of bin might use

package.json

  • bin
    • key of this field is command
    • value is file to execute with that command which is
  • main
    • local import해서 쓰는 경우만 있으면 됨.
    • Adding main makes our module both locally and globally usable.
    • tells node that when somebody is trying to import this module locally like
    • If main is missing, then node by default will try to pull index.js file from module’s root directory
  • preferGlobal
    • local import용으로도 쓴다면 셋팅할 필요 없음(default: false)
    • true로 하고 local import해도 기능상 오작동이 생기는것은 아니며 경고문구가 뜸.

npm repo에 배포되지 않은 패키지 설치하는 법

  • npm install -g {local_dir_path}
    • ex) npm install -g ./

주요 라이브러리

  • Commander.js
    • node module which will help us parse process.argv in much easy and better way while
    • parses process.argv and gives very easy interface to work with.
  • Inquirer.js
    • will help us design interactive CLI application.
  • colors
    • add some colors to console output
  • pad
    • output 메시지에 간격 추가

참고

study-cli-app-coffee-shop's People

Contributors

qus1225 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.