lib/index.js
async function getCodepointsMap(filepath) {
  const content = await fsAsync.readFile(filepath)
  let codepointsMap

  try {
    codepointsMap = JSON.parse(content)
  } catch (e) {
    throw new ValidationError('Codepoints map is invalid JSON')
  }

  for (let propName in codepointsMap) {
    codepointsMap[propName] = Number.parseInt(codepointsMap[propName])
  }

  return codepointsMap
}
async function getCodepointsMap(filepath) {
  const content = await fsAsync.readFile(filepath)
  let codepointsMap

  try {
    codepointsMap = JSON.parse(content)
  } catch (e) {
    throw new ValidationError('Codepoints map is invalid JSON')
  }

  for (let propName in codepointsMap) {
    codepointsMap[propName] = Number.parseInt(codepointsMap[propName])
  }

  return codepointsMap
}
async function getCodepointsMap ( filepath ) { const content = await fsAsync . readFile ( filepath ) let codepointsMap try { codepointsMap = JSON . parse ( content ) } catch ( e ) { throw new ValidationError ( 'Codepoints map is invalid JSON' ) } for ( let propName in codepointsMap ) { codepointsMap [ propName ] = Number . parseInt ( codepointsMap [ propName ] ) } return codepointsMap }
Correctly parse codepoints map

@param  {Object} options
@return {void}
Correctly parse codepoints map