npm.io
0.0.3 • Published 9 years ago

path-symlink

Licence
MIT
Version
0.0.3
Deps
2
Vulns
0
Weekly
0
Stars
1

Create symlinks in a safe way

Install

$ npm install --save path-symlink

Usage

const pathSymlink = require('path-symlink');

pathSymlink(['~/.dotfiles/**/*.symlink', '~/Downloads/local/*'], $HOME).then(links) {
}

API

pathSymlink(src, dest, [options])

Return a Promise for an array of creating symbolic links

src

Type: pattern for globby

Source files to become a symbolic link

dest

Type: string

Path for root directory for symbolic links

options
strip

Type: boolean
Default: true

Whether strip extension string in a path or not

License

MIT ragingwind

Keywords