boojs 0.0.12 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/lib/boojs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a21745ad74850cd649c9425e27f11a5cbdb876a8
|
4
|
+
data.tar.gz: 24233c07d0aaae1a8a612821e9bccac5efc29850
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8e60906902903952f18bc4cfc22a9f0eabf8ad6ca963763089c76e6b7f24bcc3c261f51f8655fc9380a450694842e097c1980ede94310a9746816855bb27c970
|
7
|
+
data.tar.gz: b280020506e22f6c28963a167e37a42c3aee240bc90de142d49662e23e0b4f436b391a68fa28f7aa89f11818620e9610c793b1c9c2bc4a0bb5dd5a47399e814f
|
data/README.md
CHANGED
@@ -33,22 +33,22 @@ The following options are available:
|
|
33
33
|
* `-v` - Verify that a file contains no javascript syntax errors. Returns 0 if there are no errors.
|
34
34
|
|
35
35
|
#### EXAMPLES
|
36
|
-
Open a
|
36
|
+
Open a javascript pipe that reads from stdin, writes via console.log to stdout, prints exceptions via stderr, and exits with a return code of 1 if there are errors.
|
37
37
|
```sh
|
38
38
|
(sh)>boojs
|
39
39
|
```
|
40
40
|
|
41
|
-
|
41
|
+
Same as `boojs` but read the javascript file before reading from stdin. (i.e. preload a javascript file into your environment)
|
42
42
|
```sh
|
43
43
|
(sh)>boojs code.js
|
44
44
|
```
|
45
45
|
|
46
|
-
Execute a statement, and then immediately exit.
|
46
|
+
Execute a javascript statement, and then immediately exit. Exceptions will return 1.
|
47
47
|
```sh
|
48
48
|
(sh)>boojs -e "console.log(document);"
|
49
49
|
```
|
50
50
|
|
51
|
-
Verify that a file contains no javascript errors
|
51
|
+
Verify that a file contains no javascript runtime initialization errors
|
52
52
|
```sh
|
53
53
|
(sh)>boojs -v code.js
|
54
54
|
(sh)>echo $?
|
data/lib/boojs/version.rb
CHANGED