1.0.0 • Published 3 years ago

gnorti v1.0.0

Weekly downloads
2
License
ISC
Repository
-
Last release
3 years ago

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 _. So example-package would be example_package.
  • If you are unable to access an npm package then there might have been an error adding it to the registry.

License:

ISC