Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
Tags
- LastModified
- 개미수열
- cross parameter
- 지수반등
- kotliln
- etag
- 지뢰찾기
- 스프링
- 이렇게살아야되나자괴감이
- brotli
- Spring
- jsr380
- i18n
- 랜선아미안해
- 코드스피츠
- HTTP
- 브로틀리
- jsr303
- 리얼월드HTTP
- 클래스레벨밸리데이션
- 알게뭐냐
- cache-control
- 알고리즘
- Kotlin
- 워드프레스
Archives
- Today
- Total
목록2018/10/04 (1)
취미개발 블로그와 마음수양
npm script 에 파라미터 던지기
하다보니 필요해서 찾아보다. package.json 에서 "scripts": { "dev": "node ./tesCommand.js --param $param",머 이런 식으로 정의하고 const commandLineArgs = require('command-line-args') const optionDefinitions = [ { name: 'param', alias: 'v', type: String }, { name: 'src', type: String, multiple: true, defaultOption: true } ] const options = commandLineArgs(optionDefinitions) console.log('options : ', options) 다음의 소스가 있다고 하..
Language/Node.js
2018. 10. 4. 16:36