pikchr-typescript
pikchr-typescript is a simple port of Pikchr for Typescript.
Pikchr is a PIC-like markup language for diagrams in technical documentation written by Dwayne Richard Hipp.
The project was built with emscripten
and tsdx
.
Installation
npm install pikchr-typescript --saveyarn add pikchr-typescript # Alternative with yarn
Usage
;
This should print:
Hello world!
Links
Build
- Copy the file
pikchr.c
from the Pikchr Fossil repository. - Install
emscripten
- Run
emcc -s EXPORTED_FUNCTIONS='["_pikchr"]' -s EXPORTED_RUNTIME_METHODS='["ccall", "cwrap"]' -s MODULARIZE=1 pikchr.c
to generate a newa.out.js
anda.out.wasm
.
You can use tsdx
commands like yarn start
, yarn test
, yarn build
to build the rest of the project.