Deno module to generate images from source code using Aloxaf/silicon.

Overview

deno-silicon

Deno module to generate images from source code using Aloxaf/silicon.

Dependencies

Please refer silicon's dependencies

Support Version

deno-silicon Deno
v0.0.2 v1.24.3 or earlier
v0.0.3 v1.25.0 or later

Usage

You can call generateImage(code, language, options) to generates image from source code.

const code = `package main

import {
    "fmt"
}

func main() {
    fmt.Println("Hello World")
}`;

const r = await generateImage(code, "go", { theme: "Dracula" });
await Deno.writeFile("out.png", await readAll(r));

code and language are required; options is optional.
The options conform to silicon options, see silicon help for details.

Thanks

Comments
Owner
skanehira
Like Vim, Go. Many CLI/TUI Tools, Vim plugins author.
skanehira
Opinionated collection of TypeScript definitions and utilities for Deno and Deno Deploy. With complete types for Deno/NPM/TS config files, constructed from official JSON schemas.

Schemas Note: You can also import any type from the default module, ./mod.ts deno.json import { type DenoJson } from "https://deno.land/x/[email protected]

deno911 2 Oct 12, 2022
An npm package for demonstration purposes using TypeScript to build for both the ECMAScript Module format (i.e. ESM or ES Module) and CommonJS Module format. It can be used in Node.js and browser applications.

An npm package for demonstration purposes using TypeScript to build for both the ECMAScript Module format (i.e. ESM or ES Module) and CommonJS Module format. It can be used in Node.js and browser applications.

Snyk Labs 57 Dec 28, 2022
📸 A command-line tool to generate code images of your local code right away from the terminal

?? rayli ?? A command-line tool to generate code images of your local code right away from the terminal Usage Commands Usage $ npm install -g rayli $

buidler's hub 45 Nov 4, 2022
Deno bindings for yoga, using Deno FFI.

deno_yoga Deno bindings for yoga, using Deno FFI. Usage flags: --allow-ffi: Requires ffi access to "yogacore.dll", "libyogacore.so", "libyogacore.dyli

迷渡 6 Feb 11, 2022
This is a simple boilerplate for a Deno website, deployed with Deno Deploy.

Simple Deno Website Boilerplate This is a simple website boilerplate built using Deno and deployed using Deno Deploy. Demo at simple-deno-website-boil

Bruno Bernardino 15 Dec 3, 2022
TypeSafe MongoDB Atlas Data API SDK for Deno & Deno Deploy

Atlas SDK atlas_sdk is a TypeSafe MongoDB Atlas Data API SDK for Deno & Deno Deploy Links Docs Import Replace LATEST_VERSION with current latest versi

Erfan Safari 20 Dec 26, 2022
🛣️ A tiny and fast http request router designed for use with deno and deno deploy

Rutt Rutt is a tiny http router designed for use with deno and deno deploy. It is written in about 200 lines of code and is pretty fast, using an exte

Denosaurs 26 Dec 10, 2022
A small, but powerful HTTP library for Deno & Deno Deploy, built for convenience and simplicity

Wren Wren is a small, but powerful HTTP library for Deno & Deno Deploy, built for convenience and simplicity. convenient aliases for HTTP responses au

Jakub Neander 69 Dec 12, 2022
deno-ja (Deno Japanese community) showcase

Showcase Deno本家よりも気軽に作ったものを公開できるようなShowcaseです。 スクリーンショットの撮影方法 短めのidを決めていただいて、下記のようにスクリプトを実行してください。 deno task screenshot [url] [id] ※エラーが出る場合は、下記を実行してみ

deno-ja 17 Oct 28, 2022
A command-line tool to manage Deno scripts installed via deno install

??️ nublar nublar is a command-line tool to manage your scripts installed via deno install. ??️ Installation deno install --allow-read --allow-write -

Shun Ueda 16 Dec 26, 2022
Utility to generate adwaita presets for use with AdwCustomizer from images using Google's MaterialU color generator.

Adwaita Preset Generator using Material U Color Generation Material U Color generation is done using the material-color-utilities available here: http

Avanish Subbiah 30 Oct 31, 2022
Create beautiful images and gifs of your source code 🚀🤖➕

Darwin Awesome gifs and images of your code View Demo · Report Bug · Request Feature About The Project darwin.mp4 My motivation for building this was

Quavo 6 Sep 7, 2022
Create beautiful images of your source code.

Code Image Create beautiful images of your source code. Using import React from "react"; import CodeImage from '@wcj/code-image'; export default func

小弟调调™ 7 Sep 28, 2022
Responsive no-jQuery pure JS/CSS Lightbox for images, no dependencies, 10kb unminified source code, with demo

img-lightbox Responsive no-jQuery pure JS/CSS Lightbox for images, no dependencies, 10kb unminified source code, with demo Demo codepen jsfiddle jsbin

englishextra 12 Jun 13, 2022
Deno module to convert fiat currencies with fetched API from fixer.io

Usage example Deno module to convert fiat money currencies with initial fetched API from fixer.io There are two different modes for this module. Mode

Michel M. 6 Jan 29, 2022
Unofficial Deno Module for Nekos.best

Nekos-Best-Deno Unofficial Deno module for nekos.best. If you're using Nodejs please use the official javascript wrapper. Usage Import the module in y

Yakiyo 3 Jan 4, 2023
Sample code for resizing Images with Lambda@Edge using the Custom Origin. You can deploy using AWS CDK.

Resizing Images with Lambda@Edge using the Custom Origin You can resize the images and convert the image format by query parameters. This Lambda@Edge

AWS Samples 16 Dec 11, 2022
Compare James Webb Space Telescope images to older images.

How much more powerful is the James Webb Space Telescope when compared to Hubble? Find out! More info Want to help out? CONTRIBUTING.md Blog post with

John Christensen 399 Jan 3, 2023