sindresorhus / realpath

Expands symbolic links and prints the resolved absolute filepath

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Expands symbolic links and prints the resolved absolute filepath

License:MIT License


Languages

Language:JavaScript 100.0%