jjpwrgem 0.5.5 → 0.6.0

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.
@@ -0,0 +1 @@
1
+ package.json
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "jjpwrgem",
3
- "version": "0.5.5",
3
+ "version": "0.6.0",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "jjpwrgem",
9
- "version": "0.5.5",
9
+ "version": "0.6.0",
10
10
  "hasInstallScript": true,
11
11
  "license": "MIT",
12
12
  "dependencies": {
package/package.json CHANGED
@@ -1,24 +1,26 @@
1
1
  {
2
2
  "name": "jjpwrgem",
3
- "version": "0.5.5",
3
+ "version": "0.6.0",
4
+ "private": false,
4
5
  "description": "jjpwrgem json parser with really good error messages",
5
6
  "keywords": [
6
7
  "command-line-utilities",
7
- "text-processing",
8
8
  "encoding",
9
- "parser",
10
9
  "formatter",
11
10
  "json",
12
- "linter"
11
+ "linter",
12
+ "parser",
13
+ "text-processing"
13
14
  ],
14
15
  "homepage": "https://github.com/20jasper/jjpwrgem",
15
16
  "license": "MIT",
16
17
  "author": "Jacob Asper <jacobasper191@gmail.com>",
17
- "main": "",
18
+ "repository": "https://github.com/20jasper/jjpwrgem",
18
19
  "bin": {
19
20
  "jjp": "run-jjp.js"
20
21
  },
21
- "repository": "https://github.com/20jasper/jjpwrgem",
22
+ "type": "",
23
+ "main": "",
22
24
  "scripts": {
23
25
  "postinstall": "node ./install.js"
24
26
  },
@@ -30,12 +32,12 @@
30
32
  "node": ">=14",
31
33
  "npm": ">=6"
32
34
  },
33
- "private": false,
34
- "type": "",
35
+ "artifactDownloadUrl": "https://github.com/20jasper/jjpwrgem/releases/download/jjpwrgem-v0.6.0",
35
36
  "glibcMinimum": {
36
37
  "major": 2,
37
38
  "series": 35
38
39
  },
40
+ "preferUnplugged": true,
39
41
  "supportedPlatforms": {
40
42
  "aarch64-apple-darwin": {
41
43
  "artifactName": "jjpwrgem-aarch64-apple-darwin.tar.xz",
@@ -86,7 +88,5 @@
86
88
  },
87
89
  "zipExt": ".zip"
88
90
  }
89
- },
90
- "artifactDownloadUrl": "https://github.com/20jasper/jjpwrgem/releases/download/jjpwrgem-v0.5.5",
91
- "preferUnplugged": true
92
- }
91
+ }
92
+ }
package/README.md DELETED
@@ -1,121 +0,0 @@
1
- <!-- GENERATED FILE - update the templates in the xtask -->
2
-
3
- # JJPWRGEM
4
-
5
- JJPWRGEM JSON Parser With Really Good Error Messages
6
-
7
- An RFC 8259 compliant JSON Parser and formatter!
8
-
9
- ```
10
- $ echo -en "{\"coolKey\"}" | jjp check
11
- error: expected colon after key, found `}`
12
- --> stdin:1:11
13
- |
14
- 1 | {"coolKey"}
15
- | ---------^
16
- | |
17
- | expected due to `"coolKey"`
18
- |
19
- help: insert colon and placeholder value
20
- |
21
- 1 | {"coolKey": "🐟🛹"}
22
- | ++++++++
23
-
24
- ```
25
-
26
- ![coverage: 87.3%](https://img.shields.io/badge/coverage-87.3%25-green)
27
-
28
- ![A logo of an axolotl riding a skateboard](./logo.webp)
29
-
30
- ## Table of contents
31
-
32
- - [Table of contents](#table-of-contents)
33
- - [Installation](#installation)
34
- - [Stability](#stability)
35
- - [FAQ](#faq)
36
- - [Motivations](#motivations)
37
-
38
- ## Installation
39
-
40
- ### Precompiled
41
-
42
- ```bash
43
- mise use -g github:20jasper/jjpwrgem
44
- ```
45
-
46
- See [releases](https://github.com/20jasper/JJPWRGEM/releases) for shell and powershell installation instructions and raw binaries
47
-
48
- Note: node adds ~60ms of overhead
49
-
50
- ```bash
51
- npm install -g jjpwrgem
52
- ```
53
-
54
- #### Requirements
55
-
56
- x86-64 binaries require a CPU with AVX2 support (Intel Haswell 2013+, AMD Ryzen 2017+). ARM binaries have no special requirements
57
-
58
- ### From source
59
-
60
- ```bash
61
- RUSTFLAGS="-C target-cpu=native" cargo install --path .
62
- ```
63
-
64
- ## Stability
65
-
66
- JJPWRGEM's CLI is pretty stable. Internal libraries are likely unstable
67
-
68
- ## Indeterminate Handling
69
-
70
- How cases undefined by the spec are handled
71
-
72
- - numbers of any size or length are allowed
73
- - the original precision will be maintained
74
- - -0 is not equal to 0 and will persist
75
- - the last duplicate key is stored
76
- - escaped and unescaped characters are considered not equal
77
- - parsing will fail if BOM is included
78
- - only utf8 encoding is supported
79
- - no limitations on nesting or length
80
- - extensions such as trailing commas or comments are not allowed
81
- - surrogates are not validated, eg a lone continuation byte is valid
82
-
83
- ### Is it blazingly fast™?
84
-
85
- Axolotls can't walk so fast, so skateboards are pretty fast 🛹🐟
86
-
87
- Without caching, jjpwrgem can parse and pretty print a 1.7MB JSON file in around 11ms and the average package.json in 500 microseconds
88
-
89
- See the [benchmarks](/benches/BENCHMARKS.md)
90
-
91
- ## FAQ
92
-
93
- ### What does JJPWRGEM stand for?
94
-
95
- JJPWRGEM JSON Parser With Really Good Error Messages. I was inspired by GNU to make a recursive acronym
96
-
97
- ### How do you pronounce JJPWRGEM?
98
-
99
- /ˈdʒeɪ dʒeɪ ˈpaʊər dʒɛm/ JAY-jay-POW-er-jem
100
-
101
- ### But why is it called that?
102
-
103
- It sounds cool and the name isn't taken on any package managers
104
-
105
- ### Why is the logo an axolotl riding a skateboard?
106
-
107
- It's cool
108
-
109
- ### How long is an axolotl?
110
-
111
- According to the San Diego zoo, "[a]n axolotl can reach 12 inches in length, but on average grows to about 9 inches[^axolotlFact]"
112
-
113
- [^axolotlFact]: https://animals.sandiegozoo.org/animals/axolotl
114
-
115
- ## Motivations
116
-
117
- I originally started this project to practice finite state machines, but got back into it when hearing about the internals of some formatters and compilers!
118
-
119
- I am heavily inspired by the Rust compiler's error messages. I love that unhelpful errors are considered bugs
120
-
121
- I checked out several JSON parsers and formatters, and none provided much context on _why_ a key was missing. Errors ranged from "expected closing on byte 10" to a snapshot of source code for that character, but none were up to my standards