typed-static-files
create .d.ts file from static files
Last updated a year ago by filenwind .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install typed-static-files 
SYNC missed versions from official npm registry.

typed-static-files

create .d.ts file from static files

Installation

npm install typed-static-files

Usage

// create declare file for ./src/res/**/*.(png|jpg) and ./src/static/**/*.(png|jpg)
npx typed-sf -e png,jpg -s ./src/res,./src/static

If 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

Current Tags

  • 1.0.2                                ...           latest (a year ago)

3 Versions

  • 1.0.2                                ...           a year ago
  • 1.0.1                                ...           a year ago
  • 1.0.0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (7)
Dev Dependencies (16)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |