Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kamrulislam/q
q/promise library for node
https://github.com/kamrulislam/q
Last synced: 18 days ago
JSON representation
q/promise library for node
- Host: GitHub
- URL: https://github.com/kamrulislam/q
- Owner: kamrulislam
- Created: 2014-09-20T00:31:14.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-09-29T10:27:37.000Z (about 10 years ago)
- Last Synced: 2024-09-19T10:08:54.179Z (3 months ago)
- Language: JavaScript
- Size: 176 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
# q-ng [![Build Status](https://secure.travis-ci.org/kamrulislam/q.png?branch=master)](http://travis-ci.org/kamrulislam/q)
Inspired by angular's $q service, a q/promise library for node.
## Getting Started
Install the module with: `npm install q-ng````javascript
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.