0.1.6 • Published 7 years ago

@moonandyou/symlinks v0.1.6

Weekly downloads
-
License
MIT
Repository
github
Last release
7 years ago

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

0.1.6

7 years ago

0.1.5

7 years ago

0.1.0

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago