# pretty-xl-formula

> Prettify excel formulas

Latest version **0.0.5** (published 2017-11-14) · MIT license · 0 weekly downloads

## Install

```sh
npm install pretty-xl-formula
pnpm add pretty-xl-formula
yarn add pretty-xl-formula
bun add pretty-xl-formula
```

Provides the command `pxlf`.

## 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.0.5 |
| Published | 2017-11-14 |
| First published | 2017-11-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Noah Anabiik Schwarz |
| Maintainers | chiefbiiko |
| Keywords | excel, formula, prettifier, pretty-printing, prettify |

## Links

- npm: https://www.npmjs.com/package/pretty-xl-formula
- Repository: https://github.com/chiefbiiko/pretty-xl-formula
- Issues: https://github.com/chiefbiiko/pretty-xl-formula/issues
- npm.io page: https://npm.io/package/pretty-xl-formula

## Dependencies (1)

- [be-of-type](https://npm.io/package/be-of-type.md) 0.0.0

## 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

- 0.0.5 (latest) — 2017-11-14
- 0.0.4 — 2017-11-13
- 0.0.3 — 2017-11-12
- 0.0.2 — 2017-11-12
- 0.0.1 — 2017-11-11

## README

# pretty-xl-formula

[![build status](http://img.shields.io/travis/chiefbiiko/pretty-xl-formula.svg?style=flat)](http://travis-ci.org/chiefbiiko/pretty-xl-formula) [![AppVeyor Build Status](https://ci.appveyor.com/api/projects/status/github/chiefbiiko/pretty-xl-formula?branch=master&svg=true)](https://ci.appveyor.com/project/chiefbiiko/pretty-xl-formula) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)


***

Prettify xl excel formulas.

***

## Get it

```
npm install --save pretty-xl-formula
```

***

## Usage

### `prettify(formula[, opts])`

Just pass a formula to the prettifier. The options object is optional, it defaults to the values shown below.

```js
const prettify = require('pretty-xl-formula')
const defaults = { indentType: ' ', indentLength: 2 }

prettify('sum(A3,A4%A5)', defaults)
// -> 'sum(\n  A3,\n  A4 % A5\n)'
```

### CLI

`pretty-xl-formula` also exposes a cli as `pxlf`. It is just a transform stream that reads input from files or stdin and writes output to stdout.

You should install `pretty-xl-formula` globally to get the cli on your path instantly.

```
npm install -g pretty-xl-formula
```

Now you can do stuff like...

```
cat xlformula.txt | pxlf -il=4 > pretty.txt
```

Check out `pxlf -h`.

```
usage:
    pxlf file
  or
    pxlf < file
  or
    echo sum(A2,A3) | pxlf
  or
    cat file | pxlf > pretty.txt
  or
    pxlf -il=4 sum(B5,B7)
  or
    ...

  file: text file containing an excel formula
  -il: indent length, defaults to -il=2

  when using this cli indent type always is " "
```

***

## License

[MIT](./license.md)

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