NPM joinks

This commit is contained in:
Ryan McGrath 2010-12-13 05:17:18 +09:00
parent 54fcb0cd50
commit 3bd9b6397b
2 changed files with 13 additions and 10 deletions

View file

@ -8,14 +8,21 @@ That said, here's my attempt at a re-usable solution, at least until something
more formalized gets integrated into Node.js (*hint hint*). wrench.js is fairly simple
to use - check out the documentation/examples below:
Installation
-----------------------------------------------------------------------------
npm install wrench
Usage
-----------------------------------------------------------------------------
var wrench = require("./wrench");
// Recursively delete the entire sub-tree of a directory, then kill the directory
wrench.rmdirSyncRecursive("my_directory_name");
// Recursively chmod the entire sub-tree of a directory
wrench.chmodSyncRecursive("my_directory_name", 0755);
// Deep-copy an existing directory
wrench.copyDirSyncRecursive("directory_to_copy", "location_where_copy_should_end_up");