juice-resources-promise
Version:
Simple helper function to convert juice.juiceResources into a Promise
62 lines (36 loc) • 1.54 kB
Markdown
# juice-resources-promise
[](https://travis-ci.org/niftylettuce/juice-resources-promise)
[](https://codecov.io/gh/niftylettuce/juice-resources-promise)
[](https://github.com/sindresorhus/xo)
[](https://github.com/prettier/prettier)
[](https://lass.js.org)
[](<>)
> Simple helper function to convert `juice.juiceResources` into a Promise
## Table of Contents
* [Install](#install)
* [Usage](#usage)
* [Contributors](#contributors)
* [License](#license)
## Install
[npm][]:
```sh
npm install juice-resources-promise
```
[yarn][]:
```sh
yarn add juice-resources-promise
```
## Usage
```js
const juiceResources = require('juice-resources-promise');
juiceResources(html, options).then(console.log).catch(console.error);
```
## Contributors
| Name | Website |
| -------------- | -------------------------- |
| **Nick Baugh** | <http://niftylettuce.com/> |
## License
[MIT](LICENSE) © [Nick Baugh](http://niftylettuce.com/)
##
[npm]: https://www.npmjs.com/
[yarn]: https://yarnpkg.com/