JSPM

linear-preset-proxy-factory

1.3.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q35053F
  • License MIT

Create a proxy for any to any conversions

Package Exports

  • linear-preset-proxy-factory

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (linear-preset-proxy-factory) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

linear-preset-proxy-factory

Build Status Coverage Status Code Climate

Create a proxy for any to any conversions

Install

npm i linear-preset-proxy-factory

Usage

See CodePen example (as of November 2015, the pen works on Firefox and Edge).

const Decimal = require('arbitrary-precision')(require('floating-adapter'));
const proxyFactory = require('linear-preset-proxy-factory');

const proxiedConversions = proxyFactory(Decimal, {
    a: [[0, 1], [0, 1]],
    b: [[1, 2], [3, 4]],
    c: [[0, -5], [0, 30]]
});

proxiedConversions.c_b; // => [[0, 30], [2, -3]]