q-ng

0.0.4 • Public • Published

q-ng Build Status

Inspired by angular's $q service, a q/promise library for node.

Getting Started

Install the module with: npm install q-ng

var Q = require('q-ng');

function testQ(value) {
	var deferred = Q.defer();
	setTimeout(function(){
      deferred.resolve(value);
	}, 1000);
	return deferred.promise();
}

testQ(5)
.then(function(value){
	console.log(value);
});

// this outputs: 5

Documentation

(Coming soon)

Examples

(Coming soon)

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.

Release History

(Nothing yet)

License

Copyright (c) 2014 Md Kamrul Islam Licensed under the MIT license.

Readme

Keywords

none

Package Sidebar

Install

npm i q-ng

Weekly Downloads

1

Version

0.0.4

License

MIT

Last publish

Collaborators

  • kamrul