NPM joinks
This commit is contained in:
parent
54fcb0cd50
commit
3bd9b6397b
2 changed files with 13 additions and 10 deletions
10
package.json
10
package.json
|
|
@ -1,8 +1,8 @@
|
|||
{
|
||||
"name": "wrench",
|
||||
"description": "Recursive filesystem operations that Node *should* have.",
|
||||
"version": "1.0",
|
||||
"author": "Ryan McGrath",
|
||||
"version": "0.1.0",
|
||||
"author": "Ryan McGrath <ryan@venodesigns.net>",
|
||||
|
||||
"repository": {
|
||||
"type" : "git",
|
||||
|
|
@ -29,11 +29,7 @@
|
|||
"node": ">=0.1.97",
|
||||
},
|
||||
|
||||
"dependencies": {
|
||||
"libxmljs" : "*",
|
||||
},
|
||||
|
||||
"licenses": [
|
||||
{"type" : "MIT", "url" : "http://github.com/ryanmcgrath/wrench-js/raw/master/LICENSE"}
|
||||
],
|
||||
}
|
||||
}
|
||||
|
|
|
|||
13
readme.md
13
readme.md
|
|
@ -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");
|
||||
|
||||
|
|
|
|||
Reference in a new issue