Safely force create symlinks
$ npm install lnfs
const lnfs = require('lnfs');
lnfs('foo.txt', 'bar.txt').then(() => {
console.log('Symlink successfully created!');
});
Returns a Promise
with the path to the symlink.
Type: string
Path to source file.
Type: string
Path to destination.
Type: string
Default: file
Can be set to dir
, file
, or junction
and is only available on Windows (ignored on other platforms).
- lnfs-cli - CLI for this module
MIT © Kevin Mårtensson