bet

better

Better require

Showing:

Popularity

Downloads/wk

220

GitHub Stars

3

Maintenance

Last Commit

6yrs ago

Contributors

0

Package

Dependencies

0

Size (min+gzip)

0.3KB

License

Type Definitions

Tree-Shakeable

No?

Categories

Readme

node-better

Require better for NodeJs

Usage

In PROJECT_ROOT/shared/libs/emoji:

module.exports = function() { /*...*/ }

Old way for use:

var emoji = require('../../../shared/libs/emoji')

../../../ is depend on where of your code. Or it will be ../, or it will be ../../.

New way for use:

var emoji = require('better')('shared/libs/emoji')

Just pass file path as in your project root dir.

Install

npm install better --save

API

better.path(filePath)

Will return full path of filePath.

License

MIT LICENSE

Rate & Review

Great Documentation0
Easy to Use0
Performant0
Highly Customizable0
Bleeding Edge0
Responsive Maintainers0
Poor Documentation0
Hard to Use0
Slow0
Buggy0
Abandoned0
Unwelcoming Community0
100
No reviews found
Be the first to rate

Alternatives

No alternatives found

Tutorials

No tutorials found
Add a tutorial