JSPM

node-fitpack-wasm

0.1.1
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q10670F
  • License GPL-3.0

A wasm wrapper for the rusty-fitpack crate

Package Exports

  • node-fitpack-wasm

Readme

WebAssembly wrapper for the rusty-fitpack crate.

This library provides a WebAssembly wrapper for the rusty-fitpack crate. It is intended to be used in the node.js environment.

Installation

npm install node-fitpack-wasm

Usage

import { splrep } from "node-fitpack-wasm";

const x = [0.5, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0];
const y = [
  0.0, 1.0, 4.0, 9.0, 16.0, 25.0, 36.0, 49.0, 64.0, 81.0, 100.0, 121.0,
];

const { t, c, k } = splrep(x, y);

Building

node build.mjs

Testing

node --test

API

https://docs.rs/rusty-fitpack/0.1.2/rusty_fitpack

References