# @dprint/core

> Core functionality for dprint.

Latest version **0.9.0** (published 2020-04-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install @dprint/core
pnpm add @dprint/core
yarn add @dprint/core
bun add @dprint/core
```

## Health

**Score 40/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; high quality score.

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

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.9.0 |
| Published | 2020-04-28 |
| First published | 2019-08-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 9.5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 4140 |
| Author | David Sherret |
| Maintainers | dsherret |
| Keywords | code, formatter |

## Links

- npm: https://www.npmjs.com/package/@dprint/core
- Repository: https://github.com/dprint/dprint
- Homepage: https://github.com/dprint/dprint#readme
- Issues: https://github.com/dprint/dprint/issues
- npm.io page: https://npm.io/package/@dprint/core

## Dependencies (1)

- [@dprint/types](https://npm.io/package/@dprint/types.md) ~0.4.0

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads
- [datasets-fi-postalcodes](https://npm.io/package/datasets-fi-postalcodes.md) — 1.1K weekly downloads

## Recent versions

- 0.9.0 (latest) — 2020-04-28
- 0.8.0 — 2020-04-16
- 0.7.0 — 2020-04-12
- 0.6.0 — 2020-02-15
- 0.5.1 — 2020-02-04
- 0.5.0 — 2020-02-04
- 0.4.4 — 2019-09-20
- 0.4.3 — 2019-09-18
- 0.4.2 — 2019-09-10
- 0.4.1 — 2019-08-17
- 0.4.0 — 2019-08-15
- 0.3.0 — 2019-08-11
- 0.2.0 — 2019-08-11
- 0.1.0 — 2019-08-08

## README

# @dprint/core

The core functionality for dprint.

* [Api Declarations](lib/dprint-core.d.ts)

Contains:

* Print Items - Plugins use these to declaritively tell the printer how the final file should look like.
* Global Configuration - Global configuration and its result.
* `formatFileText` - Function for formatting the file text.
* Printer (internal) - Accepts an iterable of print items, resolves the conditions and infos, and decides how to lay out the final text.
* Writer (internal) - Used by the printer to write out the final text. This is like an advanced string builder.

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