0.2.1 • Published 3 years ago

thai-area-converter v0.2.1

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

Guide

Convert Thai land area with several units

rai(ไร่), ngan(งาน), wah(วา), m2(ตารางเมตร), km2(ตารางกิโลเมตร), ft2(ตารางฟุต), acre(เอเคอร์), hectare(เฮกเตอร์)

Usage

const convert = require('./thai-area-converter'); //commonjs
import {convert} from 'thai-area-converter'; //ESM

convert(2).from('rai').to('wah');  // 800
convert(1).from('ngan').to('m2');  // 400
convert(1000).from('m2').to('ngan');  // 2.5