jest-transform-nearley

2.0.0 • Public • Published

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:

Readme

Keywords

Package Sidebar

Install

npm i jest-transform-nearley

Weekly Downloads

293

Version

2.0.0

License

MIT

Unpacked Size

6.27 kB

Total Files

16

Last publish

Collaborators

  • adam1658