UNPKG

284 BJavaScriptView Raw
1'use strict'
2
3const table = require('./base-table.json')
4
5// map for code -> print friendly name
6const tableByCode = {}
7
8for (const [name, code] of Object.entries(table)) {
9 if (tableByCode[code] === undefined) tableByCode[code] = name
10}
11
12module.exports = Object.freeze(tableByCode)