open-index/open-npm huggingface dataset:
npm package: @stackpress/idea-parser
Description: Parses ideas to AST and readable JSON.
Author: Chris
Latest version: 0.7.2

# Idea Parser

Parses the ideas to AST and readable JSON.

AST follows JS AST as described [here](https://astexplorer.net/#/gist/6e328cf76a27ca85e552c9cb583cdd74/1077c8842337972509a29bc9063d17bf90a1a492).

See [https://github.com/stackpress/idea] for more info.
npm package: @stackpress/idea-transformer
Description: A programmatical command line interface used by projects and that calls on external transformers to make relevant code
Author: Chris
Latest version: 0.7.2

# Idea Transformer

A programmatical command line interface used by projects and that calls 
on external transformers to make relevant code.

## Install

```bash
$ npm install @stackpress/idea-transformer

... or ...

$ yarn add @stackpress/idea-transformer
```

## Custom Terminal

Create a bin file and paste this basic example.

```js
#!/usr/bin/env node

const { Terminal } = require('@stackpress/idea-transformer');
new Terminal().run();
```

You can whitelabel `idea` like the following. This will prefix all 
outputs with `[MY LIB]` and schema files now need to have the 
extension `.mylib`.

```js
#!/usr/bin/env node

const { Terminal } = require('@stackpress/idea-transformer');
Terminal.brand = '[MY LIB]';
Terminal.extension = 'mylib';
new Terminal().run();
```

## Programmatically Transform

You can also call the transformer manually like the following example.

```js
const { Loader, Transformer } = require('@stackpress/idea-transformer');

const cwd = __dirname;
const idea = Loader.absolute('./my.idea', cwd);

const transformer = new Transformer(idea, cwd);
//read raw schema data
const schema = transformer.schema;
//transform schema
transformer.transform();
```

See [https://github.com/stackpress/idea] for more info.