Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kolodny/wavy
use ~ in require and import calls
https://github.com/kolodny/wavy
Last synced: 4 months ago
JSON representation
use ~ in require and import calls
- Host: GitHub
- URL: https://github.com/kolodny/wavy
- Owner: kolodny
- Created: 2016-04-07T01:29:27.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-08-24T02:48:24.000Z (over 7 years ago)
- Last Synced: 2024-09-21T09:12:40.329Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 8.79 KB
- Stars: 378
- Watchers: 6
- Forks: 20
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# wavy
use ~ in require and import calls[![NPM version][npm-image]][npm-url]
[![Build status][travis-image]][travis-url]
[![Downloads][downloads-image]][downloads-url]### install
```bash
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`](https://www.npmjs.com/package/pnpm),
and [`ied`](https://www.npmjs.com/package/ied)[npm-image]: https://img.shields.io/npm/v/wavy.svg?style=flat-square
[npm-url]: https://npmjs.org/package/wavy
[travis-image]: https://img.shields.io/travis/kolodny/wavy.svg?style=flat-square
[travis-url]: https://travis-ci.org/kolodny/wavy
[downloads-image]: http://img.shields.io/npm/dm/wavy.svg?style=flat-square
[downloads-url]: https://npmjs.org/package/wavy