Security News
RubyGems.org Adds New Maintainer Role
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
mkdirp-promise
Advanced tools
Like mkdir -p, but in node.js!
npm install --production --save mkdirp-promise
I reccomend using an optimized build matching your Node.js environment version, otherwise, the standard require
would work just fine.
/*
* Node 6
* Built using `babel-preset-es2015-node6`
*/
const mkdirpPromise = require('mkdirp-promise/lib/node6')
/*
* Node 5
* Built using `babel-preset-es2015-node5`
*/
const mkdirpPromise = require('mkdirp-promise/lib/node5')
/*
* Node 4
* Built using `babel-preset-es2015-node4`
*/
const mkdirpPromise = require('mkdirp-promise/lib/node4')
/*
* Node >=0.10 <=0.12
* Built using `babel-preset-es2015`
* Note:
* - additional package is required: `babel-runtime`
* - npm install --production --save babel-runtime
*/
var mkdirpPromise = require('mkdirp-promise')
const mkdirpPromise = require('mkdirp-promise')
pattern: String
options: Object
or String
Return: Object
(Promise)
When it finishes, it will be fulfilled with the first directory made that had to be created, if any.
When it fails, it will be rejected with an error as its first argument.
mkdirp('/tmp/foo/bar/baz')
.then(console.log) //=> '/tmp/foo'
.catch(console.error)
The option object will be directly passed to mkdirp.
:copyright: www.ahmadnassri.com · License: ISC · Github: @ahmadnassri · Twitter: @ahmadnassri
FAQs
Promise version of mkdirp
The npm package mkdirp-promise receives a total of 208,086 weekly downloads. As such, mkdirp-promise popularity was classified as popular.
We found that mkdirp-promise demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
RubyGems.org has added a new "maintainer" role that allows for publishing new versions of gems. This new permission type is aimed at improving security for gem owners and the service overall.
Security News
Node.js will be enforcing stricter semver-major PR policies a month before major releases to enhance stability and ensure reliable release candidates.
Security News
Research
Socket's threat research team has detected five malicious npm packages targeting Roblox developers, deploying malware to steal credentials and personal data.