realpath

3.0.0 • Public • Published

realpath

Expands symbolic links and prints the resolved absolute filepath

Similar to coreutils realpath.

Install

npm install --global realpath

Usage

$ realpath --help

  Usage
    $ realpath <filepath>

  Options
    --relative-to=DIR  Print the resolved path relative to DIR
    --no-symlinks, -s  Don't expand symlinks

  Example
    $ realpath ../unicorn
    $ realpath --no-symlinks /tmp/link
    $ realpath --relative-to /Users/sindresorhus/dev ../unicorn

Package Sidebar

Install

npm i realpath

Weekly Downloads

1,972

Version

3.0.0

License

MIT

Unpacked Size

3.72 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus