# slice2json

> Parser for the Slice language

Latest version **0.3.1** (published 2020-01-13) · GPL-2.0 license · 0 weekly downloads

## Install

```sh
npm install slice2json
pnpm add slice2json
yarn add slice2json
bun add slice2json
```

## Health

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

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

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.3.1 |
| Published | 2020-01-13 |
| First published | 2017-12-26 |
| Weekly downloads | 0 |
| License | GPL-2.0 |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 79.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Daniel Lytkin |
| Maintainers | aikoven |

## Links

- npm: https://www.npmjs.com/package/slice2json
- Repository: https://github.com/aikoven/slice2json
- Homepage: https://github.com/aikoven/slice2json#readme
- Issues: https://github.com/aikoven/slice2json/issues
- npm.io page: https://npm.io/package/slice2json

## Dependencies (1)

- [ohm-js](https://npm.io/package/ohm-js.md) ^0.14.0

## Recent versions

- 0.3.1 (latest) — 2020-01-13
- 0.3.0 — 2020-01-13
- 0.2.1 — 2019-12-16
- 0.2.0 — 2019-10-02
- 0.1.6 — 2019-07-18
- 0.1.5 — 2018-09-13
- 0.1.4 — 2018-01-23
- 0.1.3 — 2018-01-19
- 0.1.2 — 2018-01-19
- 0.1.1 — 2018-01-16
- 0.1.0 — 2017-12-26

## README

# slice2json

Parser for the Slice language.

## Usage

```ts
import {readFileSync} from 'fs';
import {parse} from 'slice2json';

const contents = readFileSync('MySlice.ice', 'utf-8');
const result = parse(contents);
/*
  {
    "pragmaOnce": true,
    "includes": [...],
    "modules": {
      "type": "module",
      "name": "MyModule",
      "content": [...]
    }
  }
*/
```

See [`types.ts`](/src/types.ts) for the schema of returned object.

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