node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org ยป

unworkify

unworkify

Non-concurrent API compatible with webworkers for environments where webworkers are unavailable

Works as drop-in replacement for @substack's webworkify, instead of:

w = require('webworkify')(require('./worker.js'));

write:

w = require('unworkify')(require('./worker.js'));

Compatible with NodeJS and browserify. Warning: incomplete and possibly buggy API implementation

Example

See example/main.js, uses webworkify in the browser and unworkify on servers (based on the webworkify example).

See also

License

MIT