0.6.0 • Published 9 years ago

qpromisify v0.6.0

Weekly downloads
2
License
-
Repository
github
Last release
9 years ago

qpromisify

Promise wrapper for Node.js libraries based on Q.

NPM

Installation and Usage

Set qpromisify as a dependency and install it.

npm install qpromisify

Then prefix the relevant require()s with qpromisify/:

var co = require('co')
var jsftp = require('qpromisify/jsftp')

var ftp = new jsftp(
{
    host: 'site.com',
    user: 'username',
    pass: 'password',
    port: 21,
})

// For `co` versions prior 4.0.0 use co(genFn)().
co(function*()
{
    console.log(yield ftp.ls("/"))
    console.log(yield ftp.raw.pwd())
    // Use parentheses to access origin unless constructor is promisified.
    ftp().raw.quit(function(err,res)
    {
        console.log([err,res])
    })
})//()

Dependencies

Q is required.

npm install q

Promisified libraries

Warning

This package is not production ready and intended for testing purposes only. You may find many bugs here.

Feedback

Any help is appreciated.

1GfNa7MyRnyShAKFFa7Mw86hs6phVrqBx1

0.6.0

9 years ago

0.5.5

9 years ago

0.4.5

10 years ago

0.4.4

10 years ago

0.4.3

10 years ago

0.3.3

10 years ago

0.3.2

11 years ago

0.3.1

11 years ago

0.3.0

11 years ago

0.2.1

11 years ago

0.2.0

11 years ago