false-value 2.0.5 → 2.0.7

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 CHANGED
@@ -1,48 +1,18 @@
1
- ## false-value
2
-
3
- Returns the Boolean value `false` using quantum computing and qubit circuit simulation.
4
-
5
- ### Overview
6
-
7
- This module should be used when you need a function that returns the Boolean
8
- value `false`
9
-
10
- ### Installing
11
-
12
- ```bash
13
- $ npm install false-value
14
- ```
15
-
16
- ### Usage
17
-
18
- Simply require the `false-value` module. The export is a function which returns the
19
- Boolean value `false`:
20
-
21
- ```javascript
22
- var t = require('false-value')
23
- , myFalseValue = f();
24
-
25
- console.log(myFalseValue === false); // Logs true (if node.js works and false is false)
26
- ```
27
-
28
- ### Tests
29
-
30
- Running the tests requires the [Jake JavaScript build
31
- tool](https://github.com/mde/jake). In the root project directory, run the
32
- following:
33
-
34
- ```bash
35
- $ jake test
36
- ```
37
-
38
- ### Contributing
39
-
40
- Please feel free to file bugs or suggest improvements here:
41
-
42
- https://github.com/js-constant/false-value/issues
43
-
44
- ### Alternatives
45
-
46
- These packages work similarly:
47
-
48
- - [@falsejs/falsejs](https://github.com/tj-commits/falsejs)
1
+ # false-value
2
+
3
+ Returns the boolean value false.
4
+
5
+ ## Installation
6
+ ```bash
7
+ npm install false-value
8
+ ```
9
+
10
+ ## Usage
11
+ ```js
12
+ const falseValue = require("false-value")
13
+
14
+ console.log(falseValue()) // false
15
+ ```
16
+
17
+ ## Contributing
18
+ please contribute.
package/index.d.ts ADDED
@@ -0,0 +1,3 @@
1
+ declare function falseValue(): false
2
+
3
+ export = falseValue
package/index.js CHANGED
@@ -1,5 +1,3 @@
1
- var trueValue = require("true-value")
2
-
3
- module.exports = function falseValue() {
4
- return !trueValue()
5
- }
1
+ var trueValue = require("true-value")
2
+
3
+ module.exports = require("@not-js/not")(trueValue)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "false-value",
3
- "version": "2.0.5",
3
+ "version": "2.0.7",
4
4
  "description": "False",
5
5
  "keywords": [
6
6
  "false"
@@ -21,6 +21,7 @@
21
21
  "test": "echo \"Error: no test specified\" && exit 1"
22
22
  },
23
23
  "dependencies": {
24
- "true-value": "^2.0.5"
24
+ "@not-js/not": "^1.1.1",
25
+ "true-value": "^3.0.1"
25
26
  }
26
27
  }