Skip to content

Just a comment #1

@ghost

Description

What is really nice that you can wrap entire modules with it and you can use ES7 async functions. e.g.

const fs =  wrap(require('fs'));

(async function (){
	try {
		var content = await fs.readFile('test.js', 'utf8');
		console.log(content);
	} catch(e) {
		console.error(e);
	}
})();

I was wondering why so few stars you get. Maybe there is another lib with the same features or node modules were already converted so they don't need to be wrapped? I did not check yet.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions