true-value 2.0.0 → 2.0.5

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 (3) hide show
  1. package/README.md +5 -15
  2. package/package.json +1 -1
  3. package/bin/cli.js +0 -15
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## true-value
2
2
 
3
- A JavaScript port of the Unix utility 'true'. Returns the Boolean value `true` using quantum computing and qubit circuit simulation.
3
+ Returns the Boolean value `true` using quantum computing and qubit circuit simulation.
4
4
 
5
5
  ### Overview
6
6
 
@@ -15,26 +15,16 @@ $ npm install true-value
15
15
 
16
16
  ### Usage
17
17
 
18
- Simply require the `true` module. The export is a function which returns the
19
- Boolean value `true`:
18
+ Simply require the `true-value` module. The export is a function which returns the
19
+ Boolean value `true-value`:
20
20
 
21
21
  ```javascript
22
- var t = require('./true')
22
+ var t = require('true-value')
23
23
  , myTrueValue = t();
24
24
 
25
- console.log(myTrueValue === true); // Logs 'true'
25
+ console.log(myTrueValue === true); // Logs true
26
26
  ```
27
27
 
28
- ### CLI
29
-
30
- If you install `true` globally, you can call it appropriately as a CLI command:
31
-
32
- ```bash
33
- $ npm install true -g
34
- ```
35
-
36
- You will likely have to use `sudo` to install it globally.
37
-
38
28
  ### Tests
39
29
 
40
30
  Running the tests requires the [Jake JavaScript build
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "true-value",
3
- "version": "2.0.0",
3
+ "version": "2.0.5",
4
4
  "description": "True",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/bin/cli.js DELETED
@@ -1,15 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- var t = require("../index")
4
-
5
- try {
6
- if (t()) {
7
- process.exit(0)
8
- } else {
9
- throw new Error("true is not true")
10
- }
11
- } catch (err) {
12
- console.log(err.message)
13
- console.log(err.stack)
14
- process.exit(1)
15
- }