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",
|
"name": "wrench",
|
||||||
"description": "Recursive filesystem operations that Node *should* have.",
|
"description": "Recursive filesystem operations that Node *should* have.",
|
||||||
"version": "1.0",
|
"version": "0.1.0",
|
||||||
"author": "Ryan McGrath",
|
"author": "Ryan McGrath <ryan@venodesigns.net>",
|
||||||
|
|
||||||
"repository": {
|
"repository": {
|
||||||
"type" : "git",
|
"type" : "git",
|
||||||
|
|
@ -29,11 +29,7 @@
|
||||||
"node": ">=0.1.97",
|
"node": ">=0.1.97",
|
||||||
},
|
},
|
||||||
|
|
||||||
"dependencies": {
|
|
||||||
"libxmljs" : "*",
|
|
||||||
},
|
|
||||||
|
|
||||||
"licenses": [
|
"licenses": [
|
||||||
{"type" : "MIT", "url" : "http://github.com/ryanmcgrath/wrench-js/raw/master/LICENSE"}
|
{"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
|
more formalized gets integrated into Node.js (*hint hint*). wrench.js is fairly simple
|
||||||
to use - check out the documentation/examples below:
|
to use - check out the documentation/examples below:
|
||||||
|
|
||||||
|
Installation
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
npm install wrench
|
||||||
|
|
||||||
|
Usage
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
var wrench = require("./wrench");
|
var wrench = require("./wrench");
|
||||||
|
|
||||||
// Recursively delete the entire sub-tree of a directory, then kill the directory
|
// Recursively delete the entire sub-tree of a directory, then kill the directory
|
||||||
wrench.rmdirSyncRecursive("my_directory_name");
|
wrench.rmdirSyncRecursive("my_directory_name");
|
||||||
|
|
||||||
// Recursively chmod the entire sub-tree of a directory
|
// Recursively chmod the entire sub-tree of a directory
|
||||||
wrench.chmodSyncRecursive("my_directory_name", 0755);
|
wrench.chmodSyncRecursive("my_directory_name", 0755);
|
||||||
|
|
||||||
// Deep-copy an existing directory
|
// Deep-copy an existing directory
|
||||||
wrench.copyDirSyncRecursive("directory_to_copy", "location_where_copy_should_end_up");
|
wrench.copyDirSyncRecursive("directory_to_copy", "location_where_copy_should_end_up");
|
||||||
|
|
||||||
|
|
|
||||||
Reference in a new issue