{"maintainers":[{"name":"berkeleytrue","email":"berkeley@r3dm.com"}],"keywords":["warning","facebook","react","invariant"],"dist-tags":{"latest":"3.0.0"},"author":{"name":"Berkeley Martinez","email":"berkeley@r3dm.com","url":"http://www.freecodecamp.com"},"description":"A mirror of Facebook's Warning","readme":"# Warning [![npm version](https://badge.fury.io/js/warning.svg)](https://badge.fury.io/js/warning)\nA mirror of Facebook's Warning\n\n\n## Usage\n```\nnpm install warning\n```\n\n```\n// some script\nvar warning = require('warning');\n\nvar ShouldBeTrue = false;\n\nwarning(\n  ShouldBeTrue,\n  'This thing should be true but you set to false. No soup for you!'\n);\n//  'This thing should be true but you set to false. No soup for you!'\n```\n\nSimilar to Facebook's invariant but only logs a warning if the condition is not met.\nThis can be used to log issues in development environments in critical\npaths. Removing the logging code for production environments will keep the\nsame logic and follow the same code paths.\n\n## Browserify\n\nWhen using [browserify](http://browserify.org/), the `browser.js` file will be imported instead of `invariant.js` and browserify will be told to transform the file with [envify](https://github.com/hughsk/envify). The only difference between `browser.js` and `invariant.js` is the `process.env.NODE_ENV` variable isn't cached. This, in combination with envify and (optionally) [uglifyjs](https://github.com/mishoo/UglifyJS), will result in a noop in production environments. Otherwise behavior is as expected. \n\n## Use in Production\n\nIt is recommended to add [babel-plugin-dev-expression](https://github.com/4Catalyzer/babel-plugin-dev-expression) with this module to remove warning messages in production.\n<br>\n<br>\n<br>\n<br>\n<br>\n<br>\n<br>\n<br>\n<br>\n<br>\n<br>\n<br>\n<br>\n<br>\n<br>\n<br>\n<br>\n<small>Don't Forget To Be Awesome</small>\n","repository":{"type":"git","url":"git+https://github.com/BerkeleyTrue/warning.git"},"users":{"wenbing":true,"nelix":true,"parkerproject":true,"lestad":true,"weifei365":true,"yuwen":true,"dreamanddead":true,"jmsherry":true},"bugs":{"url":"https://github.com/BerkeleyTrue/warning/issues"},"license":"BSD-3-Clause","versions":{"1.0.0":{"name":"warning","version":"1.0.0","description":"A mirror of Facebook's Warning","main":"warning.js","scripts":{"test":"echo 'you've been warned'"},"repository":{"type":"git","url":"https://github.com/r3dm/warning.git"},"keywords":["warning","facebook","react","invariant"],"author":{"name":"Berkeley Martinez","email":"berkeley@r3dm.com","url":"http://r3dm.com"},"license":"BSD","bugs":{"url":"https://github.com/r3dm/warning/issues"},"homepage":"https://github.com/r3dm/warning","gitHead":"d2785e5680c88143bba459e1db1c85e4ecca5086","_id":"warning@1.0.0","_shasum":"fdb5867eac00ce17214686a4efe6617d5c8e2aa8","_from":".","_npmVersion":"2.7.4","_nodeVersion":"1.6.3","_npmUser":{"name":"berkeleytrue","email":"berkeley@r3dm.com"},"maintainers":[{"name":"berkeleytrue","email":"berkeley@r3dm.com"}],"dist":{"shasum":"fdb5867eac00ce17214686a4efe6617d5c8e2aa8","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/warning/-/warning-1.0.0.tgz"},"directories":{}},"1.0.1":{"name":"warning","version":"1.0.1","description":"A mirror of Facebook's Warning","main":"warning.js","scripts":{"test":"echo 'you've been warned'"},"repository":{"type":"git","url":"https://github.com/r3dm/warning.git"},"keywords":["warning","facebook","react","invariant"],"author":{"name":"Berkeley Martinez","email":"berkeley@r3dm.com","url":"http://r3dm.com"},"license":"BSD","bugs":{"url":"https://github.com/r3dm/warning/issues"},"homepage":"https://github.com/r3dm/warning","gitHead":"2acb7e49b0b9aa1ac52ff0761bbf3ca3db1b7a34","_id":"warning@1.0.1","_shasum":"58e9b758c0c79c10f8b13984a43c9195ec3e6f50","_from":".","_npmVersion":"2.7.5","_nodeVersion":"1.6.4","_npmUser":{"name":"berkeleytrue","email":"berkeley@robotie.com"},"maintainers":[{"name":"berkeleytrue","email":"berkeley@r3dm.com"}],"dist":{"shasum":"58e9b758c0c79c10f8b13984a43c9195ec3e6f50","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/warning/-/warning-1.0.1.tgz"},"directories":{}},"1.0.2":{"name":"warning","version":"1.0.2","description":"A mirror of Facebook's Warning","main":"warning.js","scripts":{"test":"echo 'you've been warned'"},"repository":{"type":"git","url":"git+https://github.com/r3dm/warning.git"},"keywords":["warning","facebook","react","invariant"],"author":{"name":"Berkeley Martinez","email":"berkeley@r3dm.com","url":"http://r3dm.com"},"license":"BSD","bugs":{"url":"https://github.com/r3dm/warning/issues"},"homepage":"https://github.com/r3dm/warning","gitHead":"f6de4ea58115d650d6fda9e59d45063d7ea743ac","_id":"warning@1.0.2","_shasum":"5716cfb37147b4534b3e164480afffa6a255f0d9","_from":".","_npmVersion":"2.9.1","_nodeVersion":"1.6.4","_npmUser":{"name":"berkeleytrue","email":"berkeley@robotie.com"},"maintainers":[{"name":"berkeleytrue","email":"berkeley@r3dm.com"}],"dist":{"shasum":"5716cfb37147b4534b3e164480afffa6a255f0d9","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/warning/-/warning-1.0.2.tgz"},"directories":{}},"2.0.0":{"name":"warning","version":"2.0.0","description":"A mirror of Facebook's Warning","main":"warning.js","browser":"browser.js","browserify":{"transform":["envify"]},"scripts":{"test":"echo 'you've been warned'"},"dependencies":{"envify":"^3.0.0"},"repository":{"type":"git","url":"git+https://github.com/r3dm/warning.git"},"keywords":["warning","facebook","react","invariant"],"author":{"name":"Berkeley Martinez","email":"berkeley@r3dm.com","url":"http://r3dm.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/r3dm/warning/issues"},"homepage":"https://github.com/r3dm/warning","gitHead":"0c3fa99bf47c0cd12b95db2b674c3da2d6115319","_id":"warning@2.0.0","_shasum":"34235ed1061fbe75fff52fd9be23d730d9b4b6e0","_from":".","_npmVersion":"2.11.1","_nodeVersion":"1.6.4","_npmUser":{"name":"berkeleytrue","email":"berkeley@robotie.com"},"maintainers":[{"name":"berkeleytrue","email":"berkeley@r3dm.com"}],"dist":{"shasum":"34235ed1061fbe75fff52fd9be23d730d9b4b6e0","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/warning/-/warning-2.0.0.tgz"},"directories":{}},"2.1.0":{"name":"warning","version":"2.1.0","description":"A mirror of Facebook's Warning","main":"warning.js","browser":"browser.js","browserify":{"transform":["loose-envify"]},"files":["browser.js","warning.js"],"scripts":{"test":"NODE_ENV=production tap test/*.js && NODE_ENV=development tap test/*.js"},"dependencies":{"loose-envify":"^1.0.0"},"devDependencies":{"browserify":"^11.0.1","tap":"^1.4.0"},"repository":{"type":"git","url":"git+https://github.com/r3dm/warning.git"},"keywords":["warning","facebook","react","invariant"],"author":{"name":"Berkeley Martinez","email":"berkeley@r3dm.com","url":"http://r3dm.com"},"license":"BSD-2-Clause","bugs":{"url":"https://github.com/r3dm/warning/issues"},"homepage":"https://github.com/r3dm/warning","gitHead":"b7d56e3f6c21c3ee05af617222d16c7d80118443","_id":"warning@2.1.0","_shasum":"21220d9c63afc77a8c92111e011af705ce0c6901","_from":".","_npmVersion":"2.11.1","_nodeVersion":"1.6.4","_npmUser":{"name":"berkeleytrue","email":"berkeley@robotie.com"},"maintainers":[{"name":"berkeleytrue","email":"berkeley@r3dm.com"}],"dist":{"shasum":"21220d9c63afc77a8c92111e011af705ce0c6901","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/warning/-/warning-2.1.0.tgz"},"directories":{}},"3.0.0":{"name":"warning","version":"3.0.0","description":"A mirror of Facebook's Warning","main":"warning.js","browser":"browser.js","browserify":{"transform":["loose-envify"]},"files":["browser.js","warning.js"],"scripts":{"test":"NODE_ENV=production tap test/*.js && NODE_ENV=development tap test/*.js"},"dependencies":{"loose-envify":"^1.0.0"},"devDependencies":{"browserify":"^11.0.1","tap":"^1.4.0"},"repository":{"type":"git","url":"git+https://github.com/BerkeleyTrue/warning.git"},"keywords":["warning","facebook","react","invariant"],"author":{"name":"Berkeley Martinez","email":"berkeley@r3dm.com","url":"http://www.freecodecamp.com"},"license":"BSD-3-Clause","bugs":{"url":"https://github.com/BerkeleyTrue/warning/issues"},"homepage":"https://github.com/BerkeleyTrue/warning","gitHead":"6ef2da6b3da76eb6fcc735eaa52160fec2ed6078","_id":"warning@3.0.0","_shasum":"32e5377cb572de4ab04753bdf8821c01ed605b7c","_from":".","_npmVersion":"3.8.7","_nodeVersion":"4.2.4","_npmUser":{"name":"berkeleytrue","email":"berkeley@robotie.com"},"maintainers":[{"name":"berkeleytrue","email":"berkeley@r3dm.com"}],"dist":{"shasum":"32e5377cb572de4ab04753bdf8821c01ed605b7c","tarball":"http://nexus.dui88.com:8081/nexus/content/repositories/npm-registry/warning/-/warning-3.0.0.tgz"},"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/warning-3.0.0.tgz_1464922442833_0.31551201664842665"},"directories":{}}},"name":"warning","time":{"modified":"2017-05-29T02:50:03.955Z","created":"2015-04-01T00:23:13.847Z","1.0.0":"2015-04-01T00:23:13.847Z","1.0.1":"2015-04-09T14:49:19.325Z","1.0.2":"2015-05-30T07:09:47.232Z","2.0.0":"2015-07-12T00:41:56.055Z","2.1.0":"2015-10-04T21:26:55.529Z","3.0.0":"2016-06-03T02:54:03.287Z"},"readmeFilename":"README.md","homepage":"https://github.com/BerkeleyTrue/warning"}