← Winnitude! Search  ·  Reader Mode (1498 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 54 LINKS

GitHub - AssemblyScript/node: Implementations of the node.js APIs for use with AssemblyScript.

Repository navigation

node
Public

About

Implementations of the node.js APIs for use with AssemblyScript.

Topics

assemblyscript nodejs wasi wasm webassembly

Resources

Readme Apache-2.0 license

Code of conduct

Code of conduct Activity Custom properties

Stars

64 stars

Watchers

4 watching

Forks

12 forks Report repository
Branches

Tags
Go to Branches page Go to Tags page

Latest commit

 

History


22 Commits
View commit history for this file.

Folders and files

Name Name Last commit message Last commit date
assembly assembly    
tests tests    
.gitignore .gitignore    
.travis.yml .travis.yml    
LICENSE LICENSE    
README.md README.md    
package-lock.json package-lock.json    
package.json package.json    

Repository files navigation

node

Implementations of the node.js APIs for AssemblyScript, utilizing WASI .

Introduction

This library aims to provide a convenient node.js-like environment for AssemblyScript programs. Please note that it is still in its early stages and that both the library and WASI are not even close to be finalized.

As always, if the idea sounds appealing to you, feel free to improve existing APIs or to contribute additional ones.

Instructions

Install the library components as a dependency of your project

$> npm install --save-dev AssemblyScript/node

and include it in your build step to gain access to the implementations it provides:

$> asc --lib ./node_modules/@assemblyscript/node/assembly [...]

Doing so will automatically register common globals like the Buffer class and enables requiring for example the filesystem module through import * as fs from "fs".

Documentation

Building

To run the tests, first make sure that development dependencies are installed, then run:

$> npm test

One of the dependencies is node-wasi , which is a native module. If you are running into issues when compiling it (on Windows), make sure that node-wasi supports your version of node.js, that your machine can build native modules in the first place and that your version of npm is recent (npm install npm@latest -g).

About

Implementations of the node.js APIs for use with AssemblyScript.

Topics

assemblyscript nodejs wasi wasm webassembly

Resources

Readme Apache-2.0 license

Code of conduct

Code of conduct Activity Custom properties

Stars

64 stars

Watchers

4 watching

Forks

12 forks Report repository

Releases

Packages

Used by

Contributors

Languages