dereference-symlinks

1.0.2 • Public • Published

dereference-symlinks

Because sometimes you need actual files.

Usage

Command line

$ dereference-symlinks ./node_modules

Javascript

import dereferenceSymlinks from 'dereference-symlinks'
import { join } from 'path'

dereferenceSymlinks(join(process.cwd(), 'node_modules'))

In the above examples all symlinks in the node_modules folder will be replaced with the files they link to except for hidden files and folders (e.g. the contents of the .bin directory).

/dereference-symlinks/

    Package Sidebar

    Install

    npm i dereference-symlinks

    Weekly Downloads

    6

    Version

    1.0.2

    License

    ISC

    Last publish

    Collaborators

    • achingbrain