0.1.5 • Published 8 months ago

uk-areacodes-wasm v0.1.5

Weekly downloads
-
License
ISC
Repository
github
Last release
8 months ago

NPM

Generates a WASM from uk-areacodes-rust.

Build Release

About

Packages up uk-areacodes-rust as a WASM package for use in webassembly runtimes such as a browser.

🚴 Usage

🛠️ Build with wasm-pack build

wasm-pack build

🔬 Test in Headless Browsers with wasm-pack test

wasm-pack test --headless --firefox

🎁 Publish to NPM with wasm-pack publish

wasm-pack publish

☕️ Use from JS in a Browser

In js-example-use use NPM with webpack to build a sample page to use the API.

cd js-example-use
npm install
npm run build

Examine the dist directory. To spin up a test dev server to serve the file npm run start and open http://localhost:8080

0.1.2

8 months ago

0.1.1

8 months ago

0.1.5

8 months ago

0.1.0

12 months ago