@oresoftware/waldo
Semver-oriented TypeScript library skeleton.
$ cnpm install @oresoftware/waldo 
SYNC missed versions from official npm registry.

@oresoftware/waldo

GNU/BSD find kills me sometimes, so I wrote this.

install:


# for command line tools
npm install -g waldo

# for library usage
npm install waldo --save

At the command line:

Basic usage
waldo --path="."  ### lists all matching files (no dirs)

Note that if you omit the --path arg, it defaults to $PWD/.

waldo --path="." --dirs  ### lists just dirs, -d for short
waldo --path="." --dirs --files  ### lists files and dirs, -f and -d for short
Using matching
waldo --path="." -n /node_modules/   # don't match any path that has /node_modules/ in it

waldo --path="." -n ^/node_modules/   # don't match any path that starts with /node_modules/ 

waldo --path="." -n '\.js$'   # don't match any path ends that with '.js'

waldo --path="." -m '\.js$'   #  match only paths that end that with '.js'

Library Usage


import {WaldoSearch} from '@oresoftware/waldo';

new WaldoSearch({
  
  path,  // the path you which to search
  matchesAnyOf,  // array of strings or RegExp
  matchesNoneOf, // array of strings or RegExp
  dirs,   // list dirs
  files   // list files (true by default)
  
})
.search((err, results) => {

    // results is your array of strings
});


to use with ES6 Promises

=> Use the searchp() method
new WaldoSearch({...}).searchp().then(results => {

    // results is your array of strings
});

Current Tags

  • 0.0.127                                ...           latest (2 years ago)

25 Versions

  • 0.0.127                                ...           2 years ago
  • 0.0.126                                ...           2 years ago
  • 0.0.125                                ...           2 years ago
  • 0.0.124                                ...           2 years ago
  • 0.0.123                                ...           2 years ago
  • 0.0.122                                ...           2 years ago
  • 0.0.121                                ...           2 years ago
  • 0.0.120                                ...           2 years ago
  • 0.0.119                                ...           2 years ago
  • 0.0.118                                ...           2 years ago
  • 0.0.117                                ...           2 years ago
  • 0.0.115                                ...           2 years ago
  • 0.0.114                                ...           2 years ago
  • 0.0.112                                ...           2 years ago
  • 0.0.111                                ...           2 years ago
  • 0.0.110                                ...           2 years ago
  • 0.0.109                                ...           2 years ago
  • 0.0.108                                ...           2 years ago
  • 0.0.107                                ...           2 years ago
  • 0.0.106                                ...           2 years ago
  • 0.0.105                                ...           2 years ago
  • 0.0.104                                ...           2 years ago
  • 0.0.103                                ...           2 years ago
  • 0.0.102                                ...           2 years ago
  • 0.0.101                                ...           2 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (5)
Dev Dependencies (3)

Copyright 2014 - 2016 © taobao.org |