Updated readme examples with new mkdirSyncRecursive() stuff, version bump/publish
This commit is contained in:
parent
3d70d7cecf
commit
0194630a84
2 changed files with 4 additions and 1 deletions
|
|
@ -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": {
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
||||
|
|
|
|||
Reference in a new issue