# force-symlink

> Like fs.symlink, but friendlier.

Latest version **0.0.2** (published 2016-02-10) · MIT license · 0 weekly downloads

## Install

```sh
npm install force-symlink
pnpm add force-symlink
yarn add force-symlink
bun add force-symlink
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.2 |
| Published | 2016-02-10 |
| First published | 2016-02-06 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Alexander Gugel |
| Maintainers | alexandergugel |

## Links

- npm: https://www.npmjs.com/package/force-symlink
- Repository: https://github.com/alexanderGugel/force-symlink
- Homepage: https://github.com/alexanderGugel/force-symlink#readme
- Issues: https://github.com/alexanderGugel/force-symlink/issues
- npm.io page: https://npm.io/package/force-symlink

## Dependencies (1)

- [mkdirp](https://npm.io/package/mkdirp.md) ^0.5.1

## Recent versions

- 0.0.2 (latest) — 2016-02-10
- 0.0.1 — 2016-02-06

## README

force-symlink
============

[![Travis](https://img.shields.io/travis/alexanderGugel/force-symlink.svg)](https://travis-ci.org/alexanderGugel/force-symlink)
[![npm](https://img.shields.io/npm/v/force-symlink.svg)](https://www.npmjs.com/package/force-symlink)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](http://standardjs.com/)

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

Usage
-----

Install the package via [npm](https://www.npmjs.org/) (or [ied](https://github.com/alexanderGugel/ied)):

```
npm install force-symlink
```

or:

```
ied install force-symlink
```

Example
-------

Create a symlink to `/etc/hosts`:

```js
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](LICENSE.md).

---
_Source: https://npm.io/package/force-symlink · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
