realpath

Expands symbolic links and prints the resolved absolute filepath

Usage no npm install needed!

<script type="module">
  import realpath from 'https://cdn.skypack.dev/realpath';
</script>

README

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>

  Example
    $ realpath ../unicorn
    /Users/sindresorhus/dev/unicorn