Skip to content

tjconcept/slimson

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slimson

Typing JSON by hand is tedious. Slimson is an approximate JSON language that compiles to JSON focused on speed of writing and ease of parsing.

Unlike other JSON alternatives such as JSON5, HJSON, YAML and TOML, neither readability nor aesthetics is a priority. The goal is minimizing typing effort, making it faster and easier to write, especially in constrained environments like command lines.

Example

{name:John,retired:true,pets:[cat,dog]}

Compiles to:

{"name":"John","retired":true,"pets":["cat","dog"]}

CLI

deno install --reload --global --name slimson https://raw.githubusercontent.com/tjconcept/slimson/refs/heads/main/cli.js
slimson '{name:John,age:22,pets:[cat,dog]}'
# {"name":"John","age":22,"pets":["cat","dog"]}

Test

deno --allow-env --allow-read ./test.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published