Skip to content

danalstadt/davesync

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published