lolite.and 1.1.9 → 1.1.10

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.
Files changed (2) hide show
  1. package/README.md +0 -88
  2. package/package.json +6 -1
package/README.md CHANGED
@@ -11,92 +11,4 @@ console.log(and("truthy value", true)) // true
11
11
  console.log(and(0, true)) // 0
12
12
  console.log(and("", 0)) // ""
13
13
  ```
14
-
15
- ### or(a,b)
16
- Returns `a` if `a` is truthy, else returns `b`.
17
- ```javascript
18
- const lolite = require("lolite.and")
19
-
20
- console.log(lolite.or(true, false)) // true
21
- console.log(lolite.or(false, true)) // true
22
- console.log(lolite.or(true, true)) // true
23
- console.log(lolite.or(false, false)) // false
24
- console.log(lolite.or(0, true)) // true
25
- console.log(lolite.or(0, "truthy value")) // "truthy value"
26
- console.log(lolite.or("truthy value", false)) // "truthy value"
27
- ```
28
-
29
- ### not(value)
30
- Returns the negation of the value passed in. Equivalent to JavaScript `!`.
31
- ```javascript
32
- const lolite = require("lolite.and")
33
-
34
- console.log(lolite.not(false)) // true
35
- console.log(lolite.not(true)) // false
36
- console.log(lolite.not(0)) // true
37
- console.log(lolite.not("")) // true
38
- console.log(lolite.not()) // true
39
- console.log(lolite.not(1)) // false
40
- ```
41
-
42
- ### nand(a, b)
43
- Returns the negation of the result of `and(a, b)`, where the `a` and `b` passed into `and` are the same `a` and `b` the user provides for `nand`.
44
- ```javascript
45
- const lolite = require("lolite.and")
46
-
47
- console.log(lolite.nand(true, true)) // false
48
-
49
- console.log(lolite.nand(false, true)) // true
50
-
51
- console.log(lolite.nand(true, false)) // true
52
-
53
- console.log(lolite.nand(false, false)) // true
54
- ```
55
-
56
- ### nor(a, b)
57
- Returns the negation of the result of `or(a, b)`, where the `a` and `b` passed into `or` are the same `a` and `b` the user provides for `nor`.
58
- ```javascript
59
- const lolite = require("lolite.and")
60
-
61
- console.log(lolite.nor(false, false)) // true
62
- console.log(lolite.nor(true, false)) // false
63
- console.log(lolite.nor(false, true)) // false
64
- console.log(lolite.nor(true, true)) // false
65
- ```
66
-
67
- ### `xor(a, b)`
68
- Like `or`, but if `a` and `b` are both truthy, or if `a` and `b` are both falsy, returns `false`.
69
-
70
- ```javascript
71
- const lolite = require("lolite.and")
72
- const testTruthyValue = "truthy"
73
- const testFalsyValue = 0
74
-
75
- console.log(lolite.xor(true, false)) // true
76
- console.log(lolite.xor(false, true)) // true
77
- console.log(lolite.xor(testTruthyValue, testFalsyValue)) // true
78
-
79
- console.log(lolite.xor(true, true)) // false
80
- console.log(lolite.xor(false, false)) // false
81
- console.log(lolite.xor(testTruthyValue, testTruthyValue)) // false
82
- console.log(lolite.xor(testFalsyValue, testFalsyValue)) // false
83
- ```
84
-
85
- ### `xnor(a, b)`
86
- Returns the negation of the result of `xor(a, b)`, where the `a` and `b` passed into `xor` are the same `a` and `b` the user provides for `xnor`.
87
-
88
- ```javascript
89
- const lolite = require("lolite.and")
90
- const testTruthyValue = "truthy"
91
- const testFalsyValue = 0
92
-
93
- console.log(lolite.xnor(true, false)) // false
94
- console.log(lolite.xnor(false, true)) // false
95
- console.log(lolite.xnor(testTruthyValue, testFalsyValue)) // false
96
-
97
- console.log(lolite.xnor(true, true)) // true
98
- console.log(lolite.xnor(false, false)) // true
99
- console.log(lolite.xnor(testTruthyValue, testTruthyValue)) // true
100
- console.log(lolite.xnor(testFalsyValue, testFalsyValue)) // true
101
- ```
102
14
 
package/package.json CHANGED
@@ -1,8 +1,13 @@
1
1
  {
2
2
  "name": "lolite.and",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "main": "src/lib/and.js",
5
5
  "license": "EGPSL10X-1.0",
6
+ "author": "10x'ly Made Software Ventures AB",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/enterprise-npm-ai/lolite.git"
10
+ },
6
11
  "dependencies": {
7
12
  "is-not-integer": "^1.0.2",
8
13
  "immediate-error": "^7.1.0",