# esprima-pretty-print-loader

> pretty print or write esprima ast's

Latest version **0.1.2** (published 2015-11-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install esprima-pretty-print-loader
pnpm add esprima-pretty-print-loader
yarn add esprima-pretty-print-loader
bun add esprima-pretty-print-loader
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2015-11-20 |
| First published | 2015-11-19 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 3 |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Jonathan Huang |
| Maintainers | mrblueblue |
| Keywords | esprima, webpack, loader, ast, pretty, print, fun |

## Links

- npm: https://www.npmjs.com/package/esprima-pretty-print-loader
- Repository: https://github.com/mrblueblue/esprima-pretty-print-loader
- Homepage: https://github.com/mrblueblue/esprima-pretty-print-loader#readme
- Issues: https://github.com/mrblueblue/esprima-pretty-print-loader/issues
- npm.io page: https://npm.io/package/esprima-pretty-print-loader

## Dependencies (3)

- [ramda](https://npm.io/package/ramda.md) ^0.18.0
- [esprima-fb](https://npm.io/package/esprima-fb.md) ^15001.1001.0-dev-harmony-fb
- [loader-utils](https://npm.io/package/loader-utils.md) ^0.2.11

## Alternatives

- [update-check](https://npm.io/package/update-check.md) — 4.0M weekly downloads
- [react-native-onesignal](https://npm.io/package/react-native-onesignal.md) — 134.5K weekly downloads
- [react-redux-toastr](https://npm.io/package/react-redux-toastr.md) — 33.7K weekly downloads
- [@nocobase/plugin-notification-manager](https://npm.io/package/@nocobase/plugin-notification-manager.md) — 2.0K weekly downloads
- [react-simple-toasts](https://npm.io/package/react-simple-toasts.md) — 1.9K weekly downloads

## Recent versions

- 0.1.2 (latest) — 2015-11-20
- 0.1.1 — 2015-11-20
- 0.1.0 — 2015-11-19

## README

# esprima-pretty-print-loader

Print or write out your code's AST in a pretty manner

## Installing

```javascript
npm install
```
## How to Use

Add it as a loader in your webpack config.

Support flags are `write` and `print`. Their defaults are `false` and `true`, respectively.

```javascript
module: {
  loaders: [
    {
      test: /\.jsx?$/,
      exclude: /(node_modules)/,
      loaders: ['babel', 'esprima-pretty-print?write']
    }
  ]
},

```
The above example will print out your code's AST as well as writing it to a file.

To turn off printing and only write to a file, set the loader as `esprima-pretty-print?+write,-print`.

Note: this loader does not modify your source code. It only console.logs it and / or writes it to a file.

## Supported Syntax

ES5, ES6, and JSX

---
_Source: https://npm.io/package/esprima-pretty-print-loader · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
