An open API service indexing awesome lists of open source software.

https://github.com/pizzaql/hours-helper

PizzaQL hours helper, written in Rust and compiled to WASM.
https://github.com/pizzaql/hours-helper

cargo date experimental hours hours-helper npm package pizzaql time wasm wasm-bindgen wasm-pack webassembly

Last synced: 7 months ago
JSON representation

PizzaQL hours helper, written in Rust and compiled to WASM.

Awesome Lists containing this project

README

          

# Hours Helper WASM

> PizzaQL hours helper written in Rust and compiled to WASM.

[![Build Status](https://travis-ci.org/pizzaql/hours-helper.svg?branch=master)](https://travis-ci.org/pizzaql/hours-helper)

## Install

```
$ npm install @pizzaql/hours-helper
```

## Usage

```js
import * as wasm from '@pizzaql/hours-helper';

wasm.get_time(3, true);
```

## Build

### Prerequisites

- [Rust](https://www.rust-lang.org/tools/install)
- [wasm-pack](https://rustwasm.github.io/wasm-pack/installer/)

To build a npm package run:

```
$ wasm-pack build
```

## License

MIT