Skip to content

The fastest and lightest Javascript parser for TOML 0.5.0 files

License

Notifications You must be signed in to change notification settings

hypherionmc/fast-toml

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fast TOML Parser for Node.js

This fork is a maintained copy of the original code with bugfixes/changes to suit my needs.

You are welcome to use this as well, and to contribute as needed

Back to the original content

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

Languages

  • JavaScript 100.0%