# better

> better require for load files

Latest version **0.1.0** (published 2015-04-08) · 42 weekly downloads

## Install

```sh
npm install better
pnpm add better
yarn add better
bun add better
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2015-04-08 |
| First published | 2015-04-08 |
| Weekly downloads | 42 |
| TypeScript types | none |
| Module format | CommonJS |
| Node | * |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | hfcorriez |
| Maintainers | hfcorriez |
| Keywords | require, import, use, include, root |

## Links

- npm: https://www.npmjs.com/package/better
- Repository: https://github.com/hfcorriez/node-better
- Homepage: http://github.com/hfcorriez/node-better
- Issues: https://github.com/hfcorriez/node-better/issues
- npm.io page: https://npm.io/package/better

## Alternatives

- [adhdev](https://npm.io/package/adhdev.md) — 11.1K weekly downloads
- [react-slide-button](https://npm.io/package/react-slide-button.md) — 310 weekly downloads
- [react-native-swipe-image](https://npm.io/package/react-native-swipe-image.md) — 22 weekly downloads
- [nl.fokkezb.pulltorefresh](https://npm.io/package/nl.fokkezb.pulltorefresh.md) — 11 weekly downloads
- [silent-baileys](https://npm.io/package/silent-baileys.md) — 0 weekly downloads

## Recent versions

- 0.1.0 (latest) — 2015-04-08
- 0.0.3 — 2015-04-08
- 0.0.2 — 2015-04-08
- 0.0.2-0 — 2015-04-08
- 0.0.1 — 2015-04-08
- 0.0.1-alpha — 2015-04-08

## README

# node-better

Require better for NodeJs

# Usage

In `PROJECT_ROOT/shared/libs/emoji`:

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

Old way for use:

```javascript
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:

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

> Just pass file path as in your project root dir.

# Install

```bash
npm install better --save
```

# API

## better.path(filePath)

Will return full path of `filePath`.

# License

[MIT LICENSE](https://github.com/hfcorriez/node-better/blob/master/LICENSE)

---
_Source: https://npm.io/package/better · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
