mint-wrapper

1.0.91 • Public • Published

A 💞 Mint 📦 wrapper library

Coverage Status Known Vulnerabilities Version Downloads

A Mint wrapper library.

Features

  • Retries 💩 failing requests in temporary and unexpected system and 💥 network failures
  • Uses Brakes circuit breakers to fail-fast until it is safe to retry
  • Supports Bluebird 🐦 promises

How to install

npm install mint-wrapper

How to use

Use it in your app

Authorize Facebook account and get recommendations

const MintWrapper = require('mint-wrapper')

const mint = new MintWrapper()
const facebookAccessToken = 'my-facebook-access-token'

mint.authorize(facebookAccessToken)
  .then(() => mint.getRecommendations())
  .then(({ results }) => console.log(results))

How to contribute

You can contribute either with code (e.g., new features, bug fixes and documentation) or by donating 5 EUR. You can read the contributing guidelines for instructions on how to contribute with code.

All donation proceedings will go to the Sverige för UNHCR, a swedish partner of the UNHCR - The UN Refugee Agency, a global organisation dedicated to saving lives, protecting rights and building a better future for refugees, forcibly displaced communities and stateless people.

Used by

License

Read the license for permissions and limitations.

Readme

Keywords

none

Package Sidebar

Install

npm i mint-wrapper

Weekly Downloads

3

Version

1.0.91

License

MIT

Unpacked Size

9.33 kB

Total Files

4

Last publish

Collaborators

  • hfreire