0.0.2 • Published 10 years ago
force-symlink v0.0.2
force-symlink
Like fs.symlink, but friendlier.
Handles ENOENT and EEXIST errors.
Usage
Install the package via npm (or ied):
npm install force-symlinkor:
ied install force-symlinkExample
Create a symlink to /etc/hosts:
import forceSymlink from 'force-symlink'
forceSymlink('/etc/hosts', 'link-to-hosts', function (err) {
// ...
}).
└── link-to-hosts -> /etc/hostsLicense
Licensed under the MIT license. See LICENSE.