UNPKG

swiss-projection

Version:

Convert from LV03(EPSG:21781) and LV95(EPSG:2056) to WGS84(EPSG:4326)

13 lines (10 loc) 258 B
const readline = require('readline') module.exports = func => { const reader = readline.createInterface({ input: process.stdin, }) reader.on('line', line => { const json = JSON.parse(line) console.log(JSON.stringify(func(json))) }) }