Skip to content

๐ŸŒˆ Bring rainbows to your console in AssemblyScript

License

Notifications You must be signed in to change notification settings

JairusSW/as-rainbow

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒˆ as-rainbow

as-rainbow brings rainbows to your console--in AssemblyScript.

Quickstart

In a AssemblyScript project, use a package manager to install as-rainbow.

npm i as-rainbow
yarn add as-rainbow

Now, use as-rainbow inside of your console.log()

assembly/index.ts โ†ด

import "wasi"
import { rainbow } from "as-rainbow/assembly"

console.log(rainbow.blue("Hello from as-rainbow! Time to make this terminal pop!"))

Build your .wasm binaries

npm run asbuild

Now, run ./build/debug.wasm with any wasi-enabled runtime! Alternatively, use bindings to the DOM or NodeJS.

wasmtime ./build/debug.wasm
Hello from as-rainbow! Time to make this terminal pop!
^ This should be blue, but ofc, with markdown, we can't make it blue

About

๐ŸŒˆ Bring rainbows to your console in AssemblyScript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published