1.0.0 • Published 9 years ago

what-runtime v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
9 years ago

what-runtime?

Detect whether script is running via Node.js or io.js.

Purpose: Decide to apply transpilers, such as babel, or not.

Installation

$ npm install what-runtime --save

Usage

var runtime = require('what-runtime');

// runtime = 'nodejs' if Node.js
// runtime = 'iojs' if io.js

License

WTFPL – Do What the Fuck You Want to Public License