@falsejs/falsejs 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -15
- package/Sanity.md +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -14,22 +14,22 @@ The 10 attempts to get the value of false ensure that if one fails, it will go o
|
|
|
14
14
|
|
|
15
15
|
Install FalseJS with your favorite package manager.
|
|
16
16
|
|
|
17
|
-
NPM: `npm install falsejs`
|
|
17
|
+
NPM: `npm install @falsejs/falsejs`
|
|
18
18
|
|
|
19
|
-
Yarn: `yarn add falsejs`
|
|
19
|
+
Yarn: `yarn add @falsejs/falsejs`
|
|
20
20
|
|
|
21
|
-
PNPM: `pnpm add falsejs`
|
|
21
|
+
PNPM: `pnpm add @falsejs/falsejs`
|
|
22
22
|
|
|
23
23
|
Import it with require:
|
|
24
24
|
|
|
25
25
|
```javascript
|
|
26
|
-
const falsejs = require("falsejs").default
|
|
26
|
+
const falsejs = require("@falsejs/falsejs").default
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
Import it with import:
|
|
30
30
|
|
|
31
31
|
```javascript
|
|
32
|
-
import falsejs from "falsejs"
|
|
32
|
+
import falsejs from "@falsejs/falsejs"
|
|
33
33
|
```
|
|
34
34
|
|
|
35
35
|
## Usage
|
|
@@ -61,7 +61,7 @@ The seventh argument, `openRandomImageOfDofleWhenDone`, can be `"yes"` or `"no"`
|
|
|
61
61
|
## Example
|
|
62
62
|
|
|
63
63
|
```javascript
|
|
64
|
-
const falsejs = require("falsejs").default
|
|
64
|
+
const falsejs = require("@falsejs/falsejs").default
|
|
65
65
|
const falseValue = falsejs.False("yes", "no", "no", "yes", "yes", "no", "no") // outputs a bunch of logs
|
|
66
66
|
|
|
67
67
|
console.log(falseValue) // outputs false
|
|
@@ -76,7 +76,7 @@ It takes in two parameters, the value to check whether it is false, and `logging
|
|
|
76
76
|
Example:
|
|
77
77
|
|
|
78
78
|
```javascript
|
|
79
|
-
const falsejs = require("falsejs").default
|
|
79
|
+
const falsejs = require("@falsejs/falsejs").default
|
|
80
80
|
const falseValue = falsejs.False("no", "no", "no")
|
|
81
81
|
const trueValue = require("true-value")
|
|
82
82
|
|
|
@@ -93,25 +93,25 @@ console.log(falsejs.isFalse("hi")) // false
|
|
|
93
93
|
NPM:
|
|
94
94
|
|
|
95
95
|
```
|
|
96
|
-
npm install -g falsejs
|
|
96
|
+
npm install -g @falsejs/falsejs
|
|
97
97
|
```
|
|
98
98
|
|
|
99
99
|
Yarn:
|
|
100
100
|
|
|
101
101
|
```
|
|
102
|
-
yarn add -g falsejs
|
|
102
|
+
yarn add -g @falsejs/falsejs
|
|
103
103
|
```
|
|
104
104
|
|
|
105
105
|
PNPM:
|
|
106
106
|
|
|
107
107
|
```
|
|
108
|
-
pnpm add -g falsejs
|
|
108
|
+
pnpm add -g @falsejs/falsejs
|
|
109
109
|
```
|
|
110
110
|
|
|
111
111
|
FalseJS provides a CLI.
|
|
112
112
|
|
|
113
113
|
```bash
|
|
114
|
-
$ npm install -g falsejs
|
|
114
|
+
$ npm install -g @falsejs/falsejs
|
|
115
115
|
$ false
|
|
116
116
|
false
|
|
117
117
|
```
|
|
@@ -121,7 +121,7 @@ false
|
|
|
121
121
|
A jQuery plugin is also provided for FalseJS. Here is an example:
|
|
122
122
|
|
|
123
123
|
```javascript
|
|
124
|
-
const falsejs = require("falsejs").default
|
|
124
|
+
const falsejs = require("@falsejs/falsejs").default
|
|
125
125
|
global.jQuery = require("jquery")
|
|
126
126
|
falsejs.injectIntojQuery()
|
|
127
127
|
|
|
@@ -138,7 +138,7 @@ Express middleware is also exported. Here is an example:
|
|
|
138
138
|
|
|
139
139
|
```javascript
|
|
140
140
|
const express = require("express")
|
|
141
|
-
const falsejs = require("falsejs").default
|
|
141
|
+
const falsejs = require("@falsejs/falsejs").default
|
|
142
142
|
const Bro = require("brototype")
|
|
143
143
|
|
|
144
144
|
const app = express()
|
|
@@ -173,7 +173,7 @@ app.listen(PORT)
|
|
|
173
173
|
This usage ensures that you will always get `false` whether it's April Fools or not and no errors.
|
|
174
174
|
|
|
175
175
|
```js
|
|
176
|
-
const falsejs = require("falsejs").default
|
|
176
|
+
const falsejs = require("@falsejs/falsejs").default
|
|
177
177
|
const isAprilFools = require("is-april-fools")
|
|
178
178
|
const disableAprilFoolsSideEffects = isAprilFools() ? "yes" : "no"
|
|
179
179
|
const disableChecking = isAprilFools() ? "no" : "yes"
|
|
@@ -229,7 +229,6 @@ FalseJS uses the MIT license.
|
|
|
229
229
|
|
|
230
230
|
|
|
231
231
|
|
|
232
|
-
## Footnote: i am running out of version numbers
|
|
233
232
|
please help me i am going insane
|
|
234
233
|
|
|
235
234
|
|
package/Sanity.md
CHANGED