Skip to content

Gin-Quin/fast-toml

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fast TOML Parser for Node.js

fast-toml is the fastest and lightest Javascript parser for TOML files (see benchmarks).

TOML stands for Tom's Obvious and Minimal Language and it is an awesome language for your configuration files, better than JSON and YAML on many aspects. Learn here what is TOML and how to use it (it's definitely worth the ten minutes learning).

This part is dedicated to development. See installation and usage.

Development

You need to install globally rollup (the bundler) and rollup-plugin-terser (the minifier) :

npm i -g rollup
npm i -g rollup-plugin-terser

Then you need to make sure your global installations are requirable from the rollup.config.js. That means your NODE_PATH environment variable must be set to your global node_modules folder.

On my Ubuntu environment it is set to :

export NODE_PATH=~/.npm-global/lib/node_modules

Then run rollup -c to compile the bundle.

Or rollup -c -w to recompile live on every file change.

Tests

First, make sure you installed the development dependencies by running : npm install.

Then to run the tests execute : node test.

About

The fastest and lightest Javascript parser for TOML 0.5.0 files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published