2.0.0 • Published 4 years ago

jest-transform-nearley v2.0.0

Weekly downloads
539
License
MIT
Repository
github
Last release
4 years ago

jest-transform-nearley

A jest transform that enables nearley grammar support

Usage

  1. Install the transform:

    npm install jest-transform-nearley
  2. Configure jest:

    {
      "transform": {
        "^.+\\.ne$": "jest-transform-nearley"
      }
    }
  3. Now you can import *.ne files from javascript:

    const grammar = require('./grammar.ne');

Development

Testing:

npm run test

Formatting with prettier:

npm run format

License

MIT License

Acknowledgements

Inspired by:

2.0.0

4 years ago

1.0.0

5 years ago

0.1.0

5 years ago