Updated readme examples with new mkdirSyncRecursive() stuff, version bump/publish

This commit is contained in:
Ryan McGrath 2011-10-23 16:56:28 +09:00
parent 3d70d7cecf
commit 0194630a84
2 changed files with 4 additions and 1 deletions

View file

@ -1,7 +1,7 @@
{
"name": "wrench",
"description": "Recursive filesystem (and other) operations that Node *should* have.",
"version": "1.3.0",
"version": "1.3.1",
"author": "Ryan McGrath <ryan@venodesigns.net>",
"repository": {

View file

@ -19,6 +19,9 @@ Usage
var wrench = require('wrench'),
util = require('util');
// Recursively create directories, sub-trees and all.
wrench.mkdirSyncRecursive(dir, 0777);
// Recursively delete the entire sub-tree of a directory, then kill the directory
wrench.rmdirSyncRecursive('my_directory_name');