|
1 | 1 | # module-alias |
2 | 2 | [![NPM Version][npm-image]][npm-url] |
3 | | -[![Build Status][travis-image]][travis-url] |
| 3 | + |
| 4 | +If everyone who reads this would donate just $1, I would be a millionaire in 1 week! 🙃 Thank you for reaching 1M+ weekly downloads! |
| 5 | + |
| 6 | +More donations means more motivation for me to make updates. Thank you so much! |
| 7 | + |
| 8 | +[DONATE $1 ❤️](https://tinyurl.com/donate-module-alias) |
| 9 | + |
| 10 | +--- |
4 | 11 |
|
5 | 12 | Create aliases of directories and register custom module paths in NodeJS like a boss! |
6 | 13 |
|
@@ -184,11 +191,23 @@ In order to register an alias it modifies the internal `Module._resolveFilename` |
184 | 191 |
|
185 | 192 | In order to register a custom modules path (`addPath`) it modifies the internal `Module._nodeModulePaths` method so that the given directory then acts like it's the `node_modules` directory. |
186 | 193 |
|
| 194 | +## Refactor your code (for already existing projects) |
| 195 | + |
| 196 | +If you are using this on an existing project, you can use [relative-to-alias](https://github.com/s-yadav/relative-to-alias) to refactor your code to start using aliases. |
| 197 | + |
| 198 | +## Donate |
| 199 | + |
| 200 | +If everyone who downloads module-alias would donate just $1, I would be a millionaire in 1 week! |
| 201 | + |
| 202 | +I love contributing to open source, for free, but you know, sometimes, in the middle of the night, I may wan to eat. |
| 203 | + |
| 204 | +There are some improvements planned for module-alias and your donations will help a lot to make it happen faster. |
| 205 | + |
| 206 | +[DONATE $1 ❤️](https://tinyurl.com/donate-module-alias) and thank you so much! |
| 207 | + |
| 208 | + |
187 | 209 | [npm-image]: https://img.shields.io/npm/v/module-alias.svg |
188 | 210 | [npm-url]: https://npmjs.org/package/module-alias |
189 | 211 | [travis-image]: https://img.shields.io/travis/ilearnio/module-alias/master.svg |
190 | 212 | [travis-url]: https://travis-ci.org/ilearnio/module-alias |
191 | 213 |
|
192 | | -## Refactor your code (for already existing projects) |
193 | | - |
194 | | -If you are using this on an existing project, you can use [relative-to-alias](https://github.com/s-yadav/relative-to-alias) to refactor your code to start using aliases. |
|
0 commit comments