1.0.2 • Published 7 years ago
typed-static-files v1.0.2
typed-static-files
create .d.ts file from static files
Installation
npm install typed-static-filesUsage
// create declare file for ./src/res/**/*.(png|jpg) and ./src/static/**/*.(png|jpg)
npx typed-sf -e png,jpg -s ./src/res,./src/staticIf you have file: ./src/res/test.png
Will create a declaration file for it: ./src/res/test.png.d.ts
Options
| alias | default | description | |
|---|---|---|---|
| Required | |||
| --ext | -e | File extension (* for all file) png,jpg,... | |
| --searchFolder | -s | Search folders where relate with 'cwd' option ./src/res,./src/static,... | |
| Optional | |||
| --delete | -d | false | Auto delete unused declare file |
| --cwd | process.cwd | The current working directory in which to search. | |
| --eol | lf | The declare file eol. 'lf', 'crlf', 'cr', 'auto' | |
| --watch | -w | false | Watch mode |
| --help | -h | help |