Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dbjorge/baseline-format-tester
https://github.com/dbjorge/baseline-format-tester
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/dbjorge/baseline-format-tester
- Owner: dbjorge
- Created: 2021-09-13T18:57:07.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-09-22T20:24:22.000Z (about 3 years ago)
- Last Synced: 2024-10-20T07:44:34.833Z (19 days ago)
- Language: TypeScript
- Size: 18.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# baseline-format-tester
Small utility for testing
## Usage
### Initial setup
```bash
> yarn install
> yarn build
> yarn run-bin --help> # Print an example of the format to stdout
> yarn run-bin --format yaml print> # Write an example of the format to ./test.baseline
> yarn run-bin --format yaml write ./test.baseline> # Read ./test.baseline and attempt to parse/validate it
> yarn run-bin --format yaml read ./test.basleine
```### New formatters
To add a new formatter to try out:
1. Add a new class that implements `Formatter` to `/src/formatters/`
2. Add the new formatter to the `formatters` map in `/src/index.js`## Formatter comparison
* Usage: downloads/wk from npm
* Maintenance recency: time since most recent update
* Bus factor: number of significant recent contributors
* Dependency tree size: total number of transitive dependencies
* C# support: whether there is a comparably reasonable C# implementation| *Criteria* | JSON | HJSON | JSON5 | js-yaml | pretty-format |
| - | - | - | - | - | - |
| Usage | * | 0.25M/wk | 44M/wk | 31M/wk | 27M/wk |
| Maint. recency | * | 10mo | 7mo | 5mo | 1d |
| Bus factor | * | 2 | 2-6 | 1-3 | 10+ |
| Dep. tree size | 0 | 1 | 2 | 2 | 5 |
| C# support | yes | yes, but low usage | no | yes | yes (depending on settings) |