lib/index.js
async function generateJson(options, generatorResult) {
  const jsonPath = (
    options.jsonPath ||
    `${ path.join(options.outputDir, '/' + options.fontName) }.json`
  )

  const css = generatorResult.generateCss()
  let map = {}

  css.replace(CSS_PARSE_REGEX, (match, name, code) => map[name] = code)

  await fsAsync.writeFile(jsonPath, JSON.stringify(map, null, 4))
}
async function generateJson(options, generatorResult) {
  const jsonPath = (
    options.jsonPath ||
    `${ path.join(options.outputDir, '/' + options.fontName) }.json`
  )

  const css = generatorResult.generateCss()
  let map = {}

  css.replace(CSS_PARSE_REGEX, (match, name, code) => map[name] = code)

  await fsAsync.writeFile(jsonPath, JSON.stringify(map, null, 4))
}
async function generateJson ( options , generatorResult ) { const jsonPath = ( options . jsonPath || ` ${ path . join ( options . outputDir , '/' + options . fontName ) } ` ) const css = generatorResult . generateCss ( ) let map = { } css . replace ( CSS_PARSE_REGEX , ( match , name , code ) => map [ name ] = code ) await fsAsync . writeFile ( jsonPath , JSON . stringify ( map , null , 4 ) ) }
Generate JSON icons map by parsing the generated CSS

@param  {Object} options
@return {void}
Generate JSON icons map by parsing the generated CSS