# fast-ini-decoder

> Decodes AST to a JSON object with great performance.

Latest version **0.0.1** (published 2022-06-27) · MIT license · 0 weekly downloads

## Install

```sh
npm install fast-ini-decoder
pnpm add fast-ini-decoder
yarn add fast-ini-decoder
bun add fast-ini-decoder
```

## Health

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

Positive: has types; esm support; no vulnerabilities; high quality score.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2022-06-27 |
| First published | 2022-06-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=10 |
| Dependencies | 0 |
| Unpacked size | 14 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Ferdinand Prantl |
| Maintainers | prantlf |
| Keywords | ini, decode, parse, deserialize, read |

## Links

- npm: https://www.npmjs.com/package/fast-ini-decoder
- Repository: https://github.com/prantlf/fast-ini
- Homepage: https://github.com/prantlf/fast-ini#readme
- Issues: https://github.com/prantlf/fast-ini/issues
- npm.io page: https://npm.io/package/fast-ini-decoder

## Alternatives

- [csv-to-markdown-table](https://npm.io/package/csv-to-markdown-table.md) — 47.0K weekly downloads
- [@sapphire/ratelimits](https://npm.io/package/@sapphire/ratelimits.md) — 4.4K weekly downloads
- [js-csvparser](https://npm.io/package/js-csvparser.md) — 2.0K weekly downloads
- [@adadapted/js-sdk](https://npm.io/package/@adadapted/js-sdk.md) — 251 weekly downloads
- [@grapecity/spread-sheets-sparklines](https://npm.io/package/@grapecity/spread-sheets-sparklines.md) — 103 weekly downloads

## Recent versions

- 0.0.1 (latest) — 2022-06-27

## README

# fast-ini-decoder

Decodes AST to a JSON object with great performance.

* [Extremely fast].
* Offers [ES], [CJS] and [UMD] modules.
* Includes TypeScript types.
* No dependencies.
* Tiny size - reader - 245 B minified, 191 B gzipped, 162 B brotlied.

**This is currently work in progress.**

## Synopsis

```js
import { parseText } from 'fast-ini-parser'
import { decode } from 'fast-ini-decoder'

const ini = `
scope = global

[database]
user = dbuser
password = dbpassword
database = use_this_database
`

const ast = parseText(ini)
const text = decode(ast)

// Result:
//
// {
//   "scope": "global",
//   "database": {
//     "user": "dbuser",
//     "password": "dbpassword",
//     "database": "use_this_database"
//   }
// }
```

## API

See also the [TypeScript types].

### decode(file: object): object

Decodes an AST object to a JSON object with the data.

[Extremely fast]: ../../perf/README.md#format
[CJS]: https://blog.risingstack.com/node-js-at-scale-module-system-commonjs-require/#commonjstotherescue
[UMD]: https://github.com/umdjs/umd#readme
[ES]: https://hacks.mozilla.org/2018/03/es-modules-a-cartoon-deep-dive/#content-head
[TypeScript types]: ./src/index.d.ts

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