# jest-transform-nearley

> Jest transform to support nearley grammars

Latest version **2.0.0** (published 2020-02-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install jest-transform-nearley
pnpm add jest-transform-nearley
yarn add jest-transform-nearley
bun add jest-transform-nearley
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2020-02-13 |
| First published | 2019-02-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4 |
| Author | Adam Rich |
| Maintainers | adam1658 |
| Keywords | jest, nearley, transform |

## Links

- npm: https://www.npmjs.com/package/jest-transform-nearley
- Repository: https://github.com/adam1658/jest-transform-nearley
- Homepage: https://github.com/adam1658/jest-transform-nearley#readme
- Issues: https://github.com/adam1658/jest-transform-nearley/issues
- npm.io page: https://npm.io/package/jest-transform-nearley

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2020-02-13
- 1.0.0 — 2019-02-15
- 0.1.0 — 2019-02-08

## README

# jest-transform-nearley

A jest transform that enables nearley grammar support

## Usage

1. Install the transform:

   ```bash
   npm install jest-transform-nearley
   ```

2. Configure jest:

   ```json
   {
     "transform": {
       "^.+\\.ne$": "jest-transform-nearley"
     }
   }
   ```

3. Now you can import \*.ne files from javascript:
   ```js
   const grammar = require('./grammar.ne');
   ```

## Development

Testing:

```bash
npm run test
```

Formatting with prettier:

```bash
npm run format
```

## License

MIT License

# Acknowledgements

Inspired by:

- https://nearley.js.org/docs/using-in-frontend
- https://github.com/eddyerburgh/jest-transform-stub
- https://github.com/vuejs/vue-jest

---
_Source: https://npm.io/package/jest-transform-nearley · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
