davesync

0.0.6 • Public • Published

Davesync

Davesync is the NPM module your mother warned you about. Davesync isn't an antipattern, it's the antipattern.

Contact davesync-sales@mail.ru for a license.

Usage

global.WIN32 = true;
global.DAVESYNC_LICENSE_KEY = 'YOUR_LICENSE_KEY';

const davesync = require('./davesync');

//Do davesynchronous things here.

Exports

exports.Promise

Exports an Promises/A+ implementation from one of Bluebird, Q, or RSVP. Chosen at random to keep you on your toes.

exports.async

This

exports.unpromisify

What you should be using. Accepts a Promise from a non-davesynchronous library and lets you use callbacks like in the good ole days.

davesync.unpromisify(SomeStupidThing.somethingThatRetunsAPromise(), function (err, res) {
    //Promises are meant to be broken
});

Run tests

npm test -- --davesync_license=YOUR_LICENSE_KEY

Readme

Keywords

none

Package Sidebar

Install

npm i davesync

Weekly Downloads

7

Version

0.0.6

License

SEE LICENSE IN LICENSE.md

Unpacked Size

5.86 kB

Total Files

6

Last publish

Collaborators

  • danalstadt