Skip to content

grantholly/tsjq

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TSJQ - parsing JSON with typescript

(because why not? Oh and there's tests)

installing

npm install tsjq

usage

decoding
let tsjq = require('tsjq')

const someJson = '{"a": "yeah"}'

const decoded = tsjq.decode(someJson)

Notes.txt currently outlines my troubles trying to get typesafety around decoding. I wish that I could not use any type signatures, but that is beyond me right now ¯_(ツ)_/¯

encoding
let tsjq = require('tsjq')

const someJs = {a: "yeah"}

const encoded = tsjq.encode(someJs)

Right now I am not checking for scary stuff like functions

Running tests

npm test

Notes

I originally thought this would be something like JQ (https://stedolan.github.io/jq/), but I got off track

About

A typescript JSON parser

Resources

Stars

Watchers

Forks

Packages

No packages published