relsym

Convert absolute symlinks to relative ones

Usage no npm install needed!

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

README

JavaScript Style Guide CircleCI

relsym

A small utility that converts absolute symlinks to relative ones. Similar to symlinks but in node.js.

install

npm install relsym / yarn add relsym

usage

Accepts either a folder or a symlink. If it receives a folder, it recursively converts all symlinks inside it.

const relsym = require('relsym')
relsym('/path/to/my/folder')
// tada!

use with care

This utility mutates the folder or file it is given. If you find a bug, please report it - or better yet, contribute a fix!

contributing

Yes please!

license

Apache License, Version 2.0