$ mkdir eunhyeoklee-library
$ cd eunhyeoklee-library
라이브러리 배포 전, 자신이 원하는 패키지명이 사용 가능한지 확인해야 함
npm info
명령어 사용
$ npm info 내가_원하는_패키지_이름
중복된 이름인 경우
중복된 이름이 아닌 경우
npm init
npm에 필요한 정보를 설정하는 단계
$ npm init
> package name: 내가_원하는_패키지_이름
$ npm init
$ package name: 내가_원하는_패키지_이름
> version: (1.0.0)
major.minor.patch
형식으로 구성
$ npm init
$ package name: 내가_원하는_패키지_이름
$ version: (1.0.0)
> description:
$ npm init
$ package name: 내가_원하는_패키지_이름
$ version: (1.0.0)
$ description: test
> entry point: (index.js)
Enter
키로 스킵> test command:
> git repository:
> keywords:
> author:
> license: MIT