lnfs
DefinitelyTyped icon, indicating that this package has TypeScript declarations provided by the separate @types/lnfs package

3.0.1 • Public • Published

lnfs Build Status

Safely force create symlinks

Install

$ npm install lnfs

Usage

const lnfs = require('lnfs');
 
lnfs('foo.txt', 'bar.txt').then(() => {
    console.log('Symlink successfully created!');
});

API

lnfs(src, dest, [type])

Returns a Promise with the path to the symlink.

src

Type: string

Path to source file.

dest

Type: string

Path to destination.

type

Type: string
Default: file

Can be set to dir, file, or junction and is only available on Windows (ignored on other platforms).

Related

License

MIT © Kevin Mårtensson

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 3.0.1
    58
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 3.0.1
    58
  • 3.0.0
    0
  • 2.0.0
    290
  • 1.1.0
    673
  • 1.0.0
    0

Package Sidebar

Install

npm i lnfs

Weekly Downloads

1,021

Version

3.0.1

License

MIT

Last publish

Collaborators

  • kevva