wavy

v1.0.4
use `~` in require and import calls
~ require symlink

wavy

use ~ in require and import calls

NPM version Build status Downloads

install

npm install --save wavy

This module lets 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
Tested with npm, pnpm, and ied

npm i wavy

Metadata

  • MIT
  • Whatever
  • Moshe Kolodny
  • released 5/11/2017

Downloads

Maintainers