Permalink
Browse files

documented default umask modes and a bump

  • Loading branch information...
1 parent 23d2876 commit 0384932c3a5737ea54ada780861320c728153efd @substack committed Jan 8, 2012
Showing with 7 additions and 3 deletions.
  1. +5 −1 README.markdown
  2. +1 −1 examples/pow.js
  3. +1 −1 package.json
View
@@ -10,7 +10,7 @@ pow.js
------
var mkdirp = require('mkdirp');
- mkdirp('/tmp/foo/bar/baz', 0755, function (err) {
+ mkdirp('/tmp/foo/bar/baz', function (err) {
if (err) console.error(err)
else console.log('pow!')
});
@@ -31,12 +31,16 @@ mkdirp(dir, mode, cb)
Create a new directory and any necessary subdirectories at `dir` with octal
permission string `mode`.
+If `mode` isn't specified, it defaults to `0777 & (~process.umask())`.
+
mkdirp.sync(dir, mode)
----------------------
Synchronously create a new directory and any necessary subdirectories at `dir`
with octal permission string `mode`.
+If `mode` isn't specified, it defaults to `0777 & (~process.umask())`.
+
install
=======
View
@@ -1,6 +1,6 @@
var mkdirp = require('mkdirp');
-mkdirp('/tmp/foo/bar/baz', 0755, function (err) {
+mkdirp('/tmp/foo/bar/baz', function (err) {
if (err) console.error(err)
else console.log('pow!')
});
View
@@ -1,7 +1,7 @@
{
"name" : "mkdirp",
"description" : "Recursively mkdir, like `mkdir -p`",
- "version" : "0.2.1",
+ "version" : "0.2.2",
"author" : "James Halliday <mail@substack.net> (http://substack.net)",
"main" : "./index",
"keywords" : [

0 comments on commit 0384932

Please sign in to comment.