# substrate-build

> convert a substrate document into an es module

Latest version **0.10.0** (published 2022-04-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install substrate-build
pnpm add substrate-build
yarn add substrate-build
bun add substrate-build
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.10.0 |
| Published | 2022-04-28 |
| First published | 2020-10-26 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=12.17 |
| Dependencies | 2 |
| Unpacked size | 5 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Mike Reinstein |
| Maintainers | mreinstein |

## Links

- npm: https://www.npmjs.com/package/substrate-build
- Repository: https://github.com/mreinstein/substrate-build
- Homepage: https://github.com/mreinstein/substrate-build#readme
- Issues: https://github.com/mreinstein/substrate-build/issues
- npm.io page: https://npm.io/package/substrate-build

## Dependencies (2)

- [espree](https://npm.io/package/espree.md) ^9.3.0
- [marked](https://npm.io/package/marked.md) ^4.0.10

## Recent versions

- 0.10.0 (latest) — 2022-04-28
- 0.9.0 — 2022-01-17
- 0.8.0 — 2021-06-07
- 0.7.1 — 2021-06-03
- 0.7.0 — 2020-10-27
- 0.6.0 — 2020-10-26
- 0.5.0 — 2020-10-26

## README

# substrate-build

convert a substrate document into an es module. This is useful in creating build system plugins (rollup, webpack) for consuming substrate documents.


```javascript
import buildModule from 'substrate-build'
import fs from 'fs'


const source = fs.readFileSync('./some-file.explorable.md', 'utf8')
const code = buildModule({ source })

// code is now a string containing a valid javascript module
```

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