fs-tools

fs helper utilities (walk, copy, mkdir -p)

Use shelljs, glob, mkdirp, rimraf, or other alternatives
Last updated 2 years ago by trott .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install fs-tools 
SYNC missed versions from official npm registry.

fs-tools

Build Status

Some file utilities. See API Documentation for detailed info.

This project is not maintained anymore because now actual and better alternatives are available.

Consider using another package:


walk(path, [pattern,] iterator[, callback])

Recursively scan files by regex pattern & apply iterator to each. Iterator applied only to files, not to directories. If given path is a file, iterator will be called against it (if pattern allows it).

walkSync(path, [pattern,] iterator)

Sync version of walk(). Throws exception on error.

findSorted(path, [pattern,] callback)

Recursively collects files by regex pattern (if given, all files otherwise).

remove(path, callback)

Recursively delete directory with all content.

removeSync(path)

Sync version of remove(). Throws exception on error.

mkdir(path, mode = '0755', callback)

Recursively make path.

mkdirSync(path, mode = '0755')

Sync version of mkdir(). Throws exception on error.

copy(src, dst, callback)

Copy file.

move(src, dst, callback)

Move file.

tmpdir([template])

Returns unique directory (at the moment of request) pathname.

License

MIT

Current Tags

  • 0.5.0                                ...           latest (2 years ago)

16 Versions

  • 0.5.0 [deprecated]           ...           2 years ago
  • 0.3.0 [deprecated]           ...           4 years ago
  • 0.2.11 [deprecated]           ...           6 years ago
  • 0.2.10 [deprecated]           ...           7 years ago
  • 0.2.9 [deprecated]           ...           7 years ago
  • 0.2.8 [deprecated]           ...           7 years ago
  • 0.2.7 [deprecated]           ...           8 years ago
  • 0.2.6 [deprecated]           ...           8 years ago
  • 0.2.5 [deprecated]           ...           8 years ago
  • 0.2.4 [deprecated]           ...           8 years ago
  • 0.2.3 [deprecated]           ...           8 years ago
  • 0.2.2 [deprecated]           ...           8 years ago
  • 0.2.1 [deprecated]           ...           8 years ago
  • 0.2.0 [deprecated]           ...           8 years ago
  • 0.1.1 [deprecated]           ...           8 years ago
  • 0.1.0 [deprecated]           ...           9 years ago

Copyright 2014 - 2016 © taobao.org |