node-nff
node.js find file cli
支持中文编码搜索
Use
$ npm install -g nff $ nff -h Usage: nff [options] Options: -h, --help output usage information -V, --version output the version number -f, --find [s] find file -w, --where [s] where path -i, --ignore [s] ignore file -g, --ignorePath [s] ignore file path
Examples
➜ node-nff git: ✗ nff -f Lazy,path -p node_modules,.git,list ========== node.js find {Lazy,path} list ========== **Lazy** * index.js:5 var Lazy = require; * index.js:73 var ly = new Lazy; * README.md:29 $ nff -p node_modules,.git -f Lazy * README.md:32 ========== node.js find {Lazy} list ========== * README.md:35 * **Lazy** index.js:4 var Lazy = require; * README.md:36 * **Lazy** index.js:65 var ly = new Lazy; **path** * index.js:2 var path = require; * index.js:22 var basename = path.basename; * index.js:37 var filePath = path.join; * index.js:45 var fileExt = path.extname; * bin/nff:8 .option; * README.md:21 -p, --ignorePath [ignore file path] ignore file path;