summaryrefslogtreecommitdiffstats
path: root/node_modules/invariant/README.md
diff options
context:
space:
mode:
authorGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
committerGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
commit81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 (patch)
tree8b959d50c5a614cbf9fcb346ed556140374d4b6d /node_modules/invariant/README.md
parent1870f3fdf43707a15fda0f609a021f516f45eb63 (diff)
downloadwebsite_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.gz
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.bz2
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.zip
rm node_modules
Diffstat (limited to 'node_modules/invariant/README.md')
-rw-r--r--node_modules/invariant/README.md37
1 files changed, 0 insertions, 37 deletions
diff --git a/node_modules/invariant/README.md b/node_modules/invariant/README.md
deleted file mode 100644
index 4f18354..0000000
--- a/node_modules/invariant/README.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# invariant
-
-[![Build Status](https://travis-ci.org/zertosh/invariant.svg?branch=master)](https://travis-ci.org/zertosh/invariant)
-
-A mirror of Facebook's `invariant` (e.g. [React](https://github.com/facebook/react/blob/v0.13.3/src/vendor/core/invariant.js), [flux](https://github.com/facebook/flux/blob/2.0.2/src/invariant.js)).
-
-A way to provide descriptive errors in development but generic errors in production.
-
-## Install
-
-With [npm](http://npmjs.org) do:
-
-```sh
-npm install invariant
-```
-
-## `invariant(condition, message)`
-
-```js
-var invariant = require('invariant');
-
-invariant(someTruthyVal, 'This will not throw');
-// No errors
-
-invariant(someFalseyVal, 'This will throw an error with this message');
-// Error: Invariant Violation: This will throw an error with this message
-```
-
-**Note:** When `process.env.NODE_ENV` is not `production`, the message is required. If omitted, `invariant` will throw regardless of the truthiness of the condition. When `process.env.NODE_ENV` is `production`, the message is optional – so they can be minified away.
-
-### Browser
-
-When used with [browserify](https://github.com/substack/node-browserify), it'll use `browser.js` (instead of `invariant.js`) and the [envify](https://github.com/hughsk/envify) transform will inline the value of `process.env.NODE_ENV`.
-
-### Node
-
-The node version is optimized around the performance implications of accessing `process.env`. The value of `process.env.NODE_ENV` is cached, and repeatedly used instead of reading `process.env`. See [Server rendering is slower with npm react #812](https://github.com/facebook/react/issues/812)