1.0.0 • Published 3 years ago
gnorti v1.0.0
gnorti
>be me
>dealing with big project with many files
>have to define the same npm packages with require() in each js file
>sometimes forget to include some and copy paste big chunks of require() constants from other files
>finding out some of them were already there
>spend hours trying to find duplicates and missing constants
>die
So this is basically what fixes that. Literally just install it, then use it like so
//I'm bad at naming variables so call this literally whatever you want, at all.
let npm = require("gnorti");
//Then access like so
npm.<npm package name>;
Usage:
let npm = require("gnorti");
//This would be the same as require("repl"), just define gooti once in your file just access the npm from there.
console.log(npm.repl);
Notes:
- All dependencies of all of your npm packages are also accessable, so if you installed a package and it came with some random dependency you don't have, you now have access to it.
- All npm packages accessed with gooti have
-
replaced with_
. Soexample-package
would beexample_package
. - If you are unable to access an npm package then there might have been an error adding it to the registry.
License:
ISC
1.0.0
3 years ago