Safely force create symlinks
$ npm install --save lnfs
const symlink = require('lnfs');
symlink('foo.txt', 'bar.txt').then(() => {
console.log('Symlink successfully created!');
});
Required
Type: string
Path to source file.
Required
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