typanion
json-parser-in-typescript-very-bad-idea-please-dont-use
typanion | json-parser-in-typescript-very-bad-idea-please-dont-use | |
---|---|---|
3 | 4 | |
248 | 431 | |
- | - | |
4.6 | 0.0 | |
about 1 month ago | over 3 years 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.
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.
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.
What are some alternatives?
joi - The most powerful data validation library for JS [Moved to: https://github.com/hapijs/joi]
xlcalculator - xlcalculator converts MS Excel formulas to Python and evaluates them.
Funval - 🦩 Joi like validations for TypeScript
python-typing-machines - Python type hints are Turing complete.
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
awesome-template-literal-types - Curated list of awesome Template Literal Types examples
@sindresorhus/is - Type check values
pydantic - Data validation using Python type hints
zod - TypeScript-first schema validation with static type inference
typing-euler - Typing Euler because values are code smells
nope-validator - A small, simple, and fast JS validator. Like, wow that's fast. 🚀
json-parser-in-typescript-ver