1.0.0 • Published 6 years ago

bartholomew-js v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

Bartholomew JS

Library with basic Bart functionalities.

Installation

With npm:

npm install bartholomew-js

With yarn:

yarn add bartholomew-js

API

eatMyShorts

You can pass any value and returns it multiply by 0!!

Params

  • value: number
  • callback: Function(err: string, value: number)
  • returns: Promise

Callback Example

const Bart = require('bartholomew-js');

Bart.eatMyShorts(1231778278917387213, (err, val) => {
  if (err) {
    throw Error(err);
  }

  console.log(err); // 0
});

Promise Example

const Bart = require('bartholomew-js');

Bart.eatMyShorts(1231778278917387213)
  .then(value => console.log(value) // 0)
  .catch(err => console.log(err) // show an error!)

Contribute

Contributions to the package are always welcome!

Support

Get in touch with me using one of the following means:

Authors

License

The code base is licensed under the MIT license.