squigly

0.0.2 • Public • Published

squigly

use ~ in require and import calls

Important!

You must install squigly with a ~ alias which the usage below illustrates, otherwise the script won't run properly!

install

npm install '~@https://github.com/kolodny/squigly#42783ea5' --save-dev

This module lets you turn things like require('../../../../foo') into something like
require('~/foo'). The way it works is that on postinstall it replaces the ~ folder to point to the root of the project such that app/node_modules/~ will point to app/

Readme

Keywords

none

Package Sidebar

Install

npm i squigly

Weekly Downloads

1

Version

0.0.2

License

ISC

Unpacked Size

1.38 kB

Total Files

3

Last publish

Collaborators

  • kolodny