wavy2

use `~` in require and import calls

Usage no npm install needed!

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

README

wavy

use ~ in require and import calls

NPM version Build status Downloads

install

npm install --save wavy

This module let's you turn things like require('../../../../foo') into something like
require('~/foo'). The way it works is that on postinstall it creates a symlink in app/node_modules/~ to point to app/

Tested on Mac, Linux and Windows