Skip to content

humanwhocodes/momoa

Repository files navigation

Momoa JSON

by Nicholas C. Zakas

If you find this useful, please consider supporting my work with a donation.

About

Momoa is a general purpose JSON utility toolkit for JavaScript and Rust. There are two different packages in this repository:

  • js - the JavaScript package
  • rust - the Rust crate

These two packages are not directly linked but they do produce the same AST and so they are kept in sync using a monorepo.

Development

To work on Momoa, you'll need:

Make sure all three are installed by visiting the links and following the instructions to install.

Now you're ready to clone the repository:

git clone https://github.com/humanwhocodes/momoa.git

Follow the instructions in the README in each directory for how to work on that package.

Acknowledgements

This project takes inspiration (but not code) from a number of other projects:

  • Esprima inspired the package interface and AST format.
  • json-to-ast inspired the AST format.
  • parseJson.js inspired me by showing writing a parser isn't all that hard.

License

Apache 2.0