$ cnpm install next-path
One step closer to your destination.
Like an incremental path.relative().
npm install next-path --save
Get it into your program.
const nextPath = require('next-path');
Determine the next path, one step closer to the destination.
console.log(nextPath('a', 'a/b/c')); // => 'a/b'
console.log(nextPath('../', '../../../')); // => '../..'
Type: string
The base path that both to and the result will be relative to.
Type: string
The path you want to move one step closer to.
See our contributing guidelines for more details.
git checkout -b my-new-featuregit commit -am 'Add some feature'git push origin my-new-featureGo make something, dang it.
Copyright 2013 - present © cnpmjs.org | Home |