Big News: Socket Selected for OpenAI's Cybersecurity Grant Program.Details
Socket
Book a DemoSign in
Socket

@guidodizi/sbn-compiler

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@guidodizi/sbn-compiler

Run the following command `npm i -g @guidodizi/sbn-compiler`

latest
npmnpm
Version
0.0.7
Version published
Maintainers
1
Created
Source

SBN

Typescript compiler to create .svg images from DBN (Design by Numbers) language (https://dbn.media.mit.edu/)

Install compiler

Run the following command npm i -g @guidodizi/sbn-compiler

Then, to compile a .dbn file run sbn *dbnFile*

If you'd like to log the intermediate steps of compilation (lexer, parser, transformer) run sbn *dbnFile* --log

DBN functionalities

Firstly, the file to be compiled must be with the extension .dbn

CommandArgumentsFunctionality
//-Commented line
Papercolor: [0..100]Creates the square that will be used as the workspace. color defines the background color
Pencolor: [0..100]Defines the color of the designs
Linex1: [0..100] y1: [0..100] x2: [0..100] y2: [0..100]Creates a line from (x1,y1) to (x2,y2)

FAQs

Package last updated on 06 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts