npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

what-runtime

1.0.0

@vdemedes

npmHomeRepoSnykSocket
Downloads:92
$ npm install what-runtime
DailyWeeklyMonthlyYearly

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