<p align="center"><a href="#" target="_blank" rel="noopener noreferrer"><img width="150" src="https://avatars2.githubusercontent.com/u/61224306?s=150&v=4" alt="Blackprint"></a></p>

<h1 align="center">Blackprint Code Generation</h1>
<p align="center">Code generation module for Blackprint</p>

<p align="center">
  <a href='https://github.com/Blackprint/code-generation/blob/master/LICENSE'><img src='https://img.shields.io/badge/License-MIT-brightgreen.svg' height='20'></a>
  <a href='https://www.npmjs.com/package/@blackprint/code-generation'><img src='https://img.shields.io/npm/v/@blackprint/code-generation.svg' height='20'></a>
  <a href='https://discord.gg/cz9rh3a7d6'><img src='https://img.shields.io/discord/915881655921704971.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2' height='20'></a>
</p>

### Note
 - This code generation module already been implemented for [Blackprint Editor](https://blackprint.github.io/).
 - Code generation only works for nodes that already registered their code into this module. For the example you can visit [this repo](https://github.com/Blackprint/nodes/tree/master/nodes/Data/String) and find file with extension `.code.js`.
 - There's a build-in code generation handler for some languages in `./src/languages/`, in case you want to add support for some popular languages like C++, or D-lang feel free to create the handler externally or with contributing into this repository.

### License
MIT