Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

as-rainbow

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

as-rainbow

Console colors for AssemblyScript

latest
Source
npmnpm
Version
0.1.0
Version published
Weekly downloads
64
-24.71%
Maintainers
1
Weekly downloads
 
Created
Source

🌈 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

Keywords

AssemblyScript

FAQs

Package last updated on 29 Jun 2022

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