Menu

YINI Ecosystem Update: Faster Parsers, Better CLI Tools, and What’s New
📰

YINI Ecosystem Update: Faster Parsers, Better CLI Tools, and What’s New

DEV Community: typescript·Mr Smithnen·2 days ago
#eFppLJ9Z
#devtotypescript#devto#dev#yini#parser
Reading 0:00
15s threshold

YINI has seen quite a few updates across its ecosystem recently - not only in the format itself, but also in the parsers, CLI, testing, and developer tooling.

Here are some of the more notable changes.

YINI CLI: new get command

The YINI CLI now includes a get command for reading a single value directly from a YINI file.

For example:

yini get config.yini database.host

Enter fullscreen mode

Exit fullscreen mode

could return:

localhost

Enter fullscreen mode

Exit fullscreen mode

This can be useful in shell scripts, CI workflows, or whenever you only need one configuration value instead of processing the whole document yourself.

TypeScript parser: around 30% faster

The TypeScript/JavaScript parser has received a larger internal refactoring.

Parser results are now built during the parse-tree processing instead of in a separate step.

Local benchmarks on several larger workloads showed approximately 24-33% faster median parsing .

The parser's diagnostic handling has also been improved, making errors…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.