npm.io
1.0.0 • Published 5 years ago

process-fast

Licence
MIT
Version
1.0.0
Deps
0
Size
3 kB
Vulns
0
Weekly
0

process-fast

NPM Downloads Dependency status license

Fast node require('process') for modern browsers.

Inspired by process but painfully simple - usingqueueMicrotask to shim process.nextTick().

If you only need to support modern browsers this can speed up many node based modules and dependencies by avoiding slow shims such as setTimeout().

Install

$ npm install process-fast

Example

Shim with webpack:

plugins: [
  new webpack.ProvidePlugin({
    process: 'process-fast'
  })
]