UNPKG

testx-xlsx-parser

Version:

Simple XLSX file parser for use with the testx library. Converts an XLSX sheet to testx test script (JSON)

19 lines (16 loc) 373 B
locales = NL: [ {from: /jj/gi, to: 'YY'} ] module.exports = format: (val) -> val.z = translate val.z val translate: translate = (fmt) -> locale = global.xlsx.locale format = fmt if locale lcl = if typeof locale is 'string' then locales[locale] else locale for l in lcl format = format.replace?(l.from, l.to) format