# promise_require

> a promise-style of commonjs'require

Latest version **1.0.1** (published 2015-08-19) · ISC license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2015-08-19 |
| First published | 2015-08-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | ywwhack |
| Maintainers | ywwhack |
| Keywords | promise, commonjs, require |

## Links

- npm: https://www.npmjs.com/package/promise_require
- Repository: https://github.com/ywwhack/promise-require
- Homepage: https://github.com/ywwhack/promise-require#readme
- Issues: https://github.com/ywwhack/promise-require/issues
- npm.io page: https://npm.io/package/promise_require

## Alternatives

- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads
- [fa](https://npm.io/package/fa.md) — 185 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2015-08-19
- 1.0.0 — 2015-08-19

## README

###a promise-style of commonjs'require, such as:
```
    require('./foo').then(function(exports) {
        console.log(exports); //your commonjs module.exports
    });
```

###for example: 
``` 
    
    <script src="index.js"></script>

    <script>
        //make sure you are not in file path in order to prevent CORS
        require('test').then(function(exports) {
        console.log(exports.name); //'zank'
    });
    </script>
```

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