json-parser-in-typescript-very-bad-idea-please-dont-use
typanion
json-parser-in-typescript-very-bad-idea-please-dont-use | typanion | |
---|---|---|
4 | 3 | |
431 | 252 | |
- | - | |
0.0 | 4.6 | |
over 3 years ago | about 2 months ago | |
TypeScript | TypeScript | |
- | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
json-parser-in-typescript-very-bad-idea-please-dont-use
-
Python Type Hints Are Turing Complete
[1]: https://github.com/jamiebuilds/json-parser-in-typescript-ver...
- TypeScript Tricks I wish I knew when I learned TypeScript
-
Type-safe regular expression matching with named capture groups
Also, shoutout to this guy who implemented a json parser in typescript types. This is what gave me the idea.
-
I need to learn about TypeScript Template Literal Types
The next examples get progressively more bonkers, so I'm not going to write down all my thinking about them - you should check them out though and see if you can see how they work. The JSON parser is probably the best mix of complex and readable.
typanion
-
volder is a powerful JavaScript schema builder for value parsing and validation. Define a schema and validate values, volder schema are extremely simple to use, it has custom error messages, custom types, nested schemas.
What does this library provide that is not provided by Yup, Zod, Superstruct (a personal favorite), Joi, Nope, computed-types, typanion, and all the other validation libraries?
- TypeScript Tricks I wish I knew when I learned TypeScript
-
https://np.reddit.com/r/javascript/comments/prswup/clipanion_typesafe_cli_library/hdkuoob/
Since the last time I shared it the API got significantly improved; rather than using decorators we now use member properties, making the syntax work the same whether you use TypeScript or plain JavaScript. All option types are 100% inferred, and validated/coerced thanks to a companion library called Typanion.
What are some alternatives?
xlcalculator - xlcalculator converts MS Excel formulas to Python and evaluates them.
joi - The most powerful data validation library for JS [Moved to: https://github.com/hapijs/joi]
python-typing-machines - Python type hints are Turing complete.
Funval - 🦩 Joi like validations for TypeScript
awesome-template-literal-types - Curated list of awesome Template Literal Types examples
volder - volder is powerful Object schema validation lets you describe your data using a simple and readable schema and transform a value to match the requirements
pydantic - Data validation using Python type hints
@sindresorhus/is - Type check values
typing-euler - Typing Euler because values are code smells
zod - TypeScript-first schema validation with static type inference
json-parser-in-typescript-ver
nope-validator - A small, simple, and fast JS validator. Like, wow that's fast. 🚀