JSPM

decitectural

1.0.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4
  • Score
    100M100P100Q29124F
  • License MIT

decimal-architectural notation converter

Package Exports

  • decitectural

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 (decitectural) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

decitectural

A small library for converting between decimal and architectural representations of a measurement.

Installation

npm install decitectural --save

Usage

var decitectural = require('decitectural'),
    toDecimal = decitectural.toDecimal,
    toArchitectural = decitectural.toArchitectural;

console.log(toArchitectural(53.93, "inches", "1/16"));
console.log(toDecimal("4' 5 7/8\"", "inches", "1/10000"));

Tests

npm test

Release History

  • 1.0.0 Initial Release