# @enkidevs/curriculum-helpers

> Helpers for parsing/transforming/compiling Enki Curriculum from and to different formats

Latest version **9.1.3** (published 2024-11-15) · MIT license · 0 weekly downloads

## Install

```sh
npm install @enkidevs/curriculum-helpers
pnpm add @enkidevs/curriculum-helpers
yarn add @enkidevs/curriculum-helpers
bun add @enkidevs/curriculum-helpers
```

## Health

**Score 25/100 (F)** — status: maintenance-mode.

Positive: no vulnerabilities.

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

Negative: stale; low maintenance score.

## Facts

| | |
|---|---|
| Version | 9.1.3 |
| Published | 2024-11-15 |
| First published | 2018-03-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Nemanja Stojanovic |
| Maintainers | enki_ci, spypsy, mathieudutour, lukem512, stefanoeb, loopiezlol, nem035, oliviaoddo, pedromdrp, lizthedeveloper, sourabhv, milesflo, mihaiberq, kapnobatai137 |

## Links

- npm: https://www.npmjs.com/package/@enkidevs/curriculum-helpers
- Repository: https://github.com/enkidevs/curriculum-processors
- Homepage: https://github.com/enkidevs/curriculum-processors#readme
- Issues: https://github.com/enkidevs/curriculum-processors/issues
- npm.io page: https://npm.io/package/@enkidevs/curriculum-helpers

## Dependencies (1)

- [unist-util-map](https://npm.io/package/unist-util-map.md) ^2.0.0

## Recent versions

- 9.1.3 (latest) — 2024-11-15
- 9.1.2 — 2021-05-18
- 9.1.0 — 2021-04-05
- 9.0.2 — 2020-12-10
- 9.0.1 — 2020-07-20
- 9.0.0 — 2020-06-29
- 8.0.0 — 2020-06-18
- 7.1.0 — 2020-05-15
- 7.0.1 — 2020-04-20
- 7.0.0 — 2020-03-30
- 6.0.0 — 2020-03-16
- 5.0.3 — 2020-02-19
- 5.0.2 — 2019-11-22
- 5.0.0 — 2019-11-22
- 4.0.0 — 2019-10-29
- … 16 more at https://npm.io/package/@enkidevs/curriculum-helpers/versions

## README

# Enki Curriculum Helpers

[npm-badge]: https://img.shields.io/npm/v/@enkidevs/curriculum-helpers.png?style=flat-square
[npm]: https://www.npmjs.com/package/@enkidevs/curriculum-helpers

Helpers for parsing/transforming/compiling Enki Curriculum from and to different formats.

See [Enki curriculum processors](https://github.com/enkidevs/curriculum-processors) for more details.

```js
const { contentTypes, compactAst } = require("@enkidevs/curriculum-helpers")
const { getParser } = require("@enkidevs/curriculum-parser")
console.log(
  JSON.stringify(
    compactAst(
      getParser(contentTypes.INSIGHT).parseSync(`---
author: enki
---

# This is an \`example\`
`)
    ),
    null,
    2
  )
)

```

Logs

```json
{
  "type": "root",
  "children": [
    {
      "type": "yaml",
      "value": "author: enki",
      "data": {
        "parsedValue": {
          "author": "enki"
        }
      }
    },
    {
      "type": "headline",
      "children": [
        {
          "type": "text",
          "value": "This is an "
        },
        {
          "type": "inlineCode",
          "value": "example"
        }
      ]
    }
  ]
}
```

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