force-symlink

Like fs.symlink, but friendlier.

MIT 2 个版本
安装
npm install force-symlink
yarn add force-symlink
pnpm add force-symlink
bun add force-symlink
README

force-symlink

Travis npm js-standard-style

Like fs.symlink, but friendlier. Handles ENOENT and EEXIST errors.

Usage

Install the package via npm (or ied):

npm install force-symlink

or:

ied install force-symlink

Example

Create a symlink to /etc/hosts:

import forceSymlink from 'force-symlink'

forceSymlink('/etc/hosts', 'link-to-hosts', function (err) {
  // ...
})
.
└── link-to-hosts -> /etc/hosts

License

Licensed under the MIT license. See LICENSE.

版本列表
0.0.2 2016-02-10
0.0.1 2016-02-06