1.0.2 • Published 9 years ago

linear-preset-factory v1.0.2

Weekly downloads
3
License
MIT
Repository
github
Last release
9 years ago

linear-preset-factory

Build Status Coverage Status Code Climate

Generate linear presets from unit conversion data

Install

npm i linear-preset-factory

Usage

require('linear-preset-factory')({
  base: 'a',
  conversions: {
    a: [[0, 1], [0, 1]],
    b: [[1, 2], [3, 4]],
    c: [[0, -5], [0, 30]]
  }
});
// =>
// {
//   a_a: [[0, 1], [0, 1]],
//   a_b: [[1, 2], [3, 4]],
//   a_c: [[0, -5], [0, 30]]
// }

Related projects

1.0.2

9 years ago

1.0.1

9 years ago

1.0.0

9 years ago