@moonandyou/symlinks

0.1.6 • Public • Published

symlinks Build Status

Create symlinks in a safe way

Install

$ npm install --save symlinks

Usage

const symlinks = require('symlinks');

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

const hidden = f => `.${path.basename(f, path.extname(f))}`;
symlinks(['~/.dotfiles/**/*', '~/Downloads/local/*'], $HOME).then(links) {
    // will be linked after named .filename
}

API

symlinks(patterns, dest, [options])

Return a Promise for an array of creating symbolic links

patterns

Type: string or array

Pattern of globby for Source files to become a symbolic link,

dest

Type: string

Path for root directory for symbolic links

options

unlink

Type: boolean
Default: false

Whether unlink exists symbolic link or not

verbose

Type: boolean
Default: false

Show a progress

License

MIT © MOONANDYOU

Readme

Keywords

Package Sidebar

Install

npm i @moonandyou/symlinks

Weekly Downloads

1

Version

0.1.6

License

MIT

Last publish

Collaborators

  • ragingwind