0.6.0 • Published 8 years ago

qpromisify v0.6.0

Weekly downloads
2
License
-
Repository
github
Last release
8 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

8 years ago

0.5.5

8 years ago

0.4.5

8 years ago

0.4.4

9 years ago

0.4.3

9 years ago

0.3.3

9 years ago

0.3.2

10 years ago

0.3.1

10 years ago

0.3.0

10 years ago

0.2.1

10 years ago

0.2.0

10 years ago