Safely force create symlinks
JavaScript
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore
.npmrc
.travis.yml
index.js
license
package.json
readme.md
test.js

readme.md

lnfs Build Status

Safely force create symlinks

Install

$ npm install lnfs

Usage

const lnfs = require('lnfs');

lnfs('foo.txt', 'bar.txt').then(() => {
	console.log('Symlink successfully created!');
});

API

lnfs(src, dest, [type])

Returns a Promise with the path to the symlink.

src

Type: string

Path to source file.

dest

Type: string

Path to destination.

type

Type: string
Default: file

Can be set to dir, file, or junction and is only available on Windows (ignored on other platforms).

Related

License

MIT © Kevin Mårtensson