From 3bd9b6397bb8754bc81be6f5a6daccdb96c6f939 Mon Sep 17 00:00:00 2001 From: Ryan McGrath Date: Mon, 13 Dec 2010 05:17:18 +0900 Subject: [PATCH] NPM joinks --- package.json | 10 +++------- readme.md | 13 ++++++++++--- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 9f88e82..7a89512 100644 --- a/package.json +++ b/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 ", "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"} ], -} \ No newline at end of file +} diff --git a/readme.md b/readme.md index 66165ff..f472e63 100644 --- a/readme.md +++ b/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");