This package is no longer relevant as ES2015 support is widespread.
ES2015
Number.MAX_SAFE_INTEGER
ponyfill
$ npm install --save max-safe-integer
var MAX_SAFE_INTEGER = require('max-safe-integer');
console.log(MAX_SAFE_INTEGER);
//=> 9007199254740991
MIT © Sindre Sorhus