lib/index.js
async function deleteUnspecifiedTypes(options) {
  const { outputDir, fontName, types } = options

  for (let ext of FONT_TYPES) {
    if (types.indexOf(ext) !== -1) { continue }

    let filepath = path.resolve(outputDir, `${ fontName }.${ ext }`)

    if (await fsAsync.exists(filepath)) {
      await fsAsync.unlink(filepath)
    }
  }
}
async function deleteUnspecifiedTypes(options) {
  const { outputDir, fontName, types } = options

  for (let ext of FONT_TYPES) {
    if (types.indexOf(ext) !== -1) { continue }

    let filepath = path.resolve(outputDir, `${ fontName }.${ ext }`)

    if (await fsAsync.exists(filepath)) {
      await fsAsync.unlink(filepath)
    }
  }
}
async function deleteUnspecifiedTypes ( options ) { const { outputDir , fontName , types } = options for ( let ext of FONT_TYPES ) { if ( types . indexOf ( ext ) !== - 1 ) { continue } let filepath = path . resolve ( outputDir , ` ${ fontName } ${ ext } ` ) if ( await fsAsync . exists ( filepath ) ) { await fsAsync . unlink ( filepath ) } } }
Delete generated fonts with extensions that weren't specified

@param  {Object} options
@return {void}
Delete generated fonts with extensions that weren t specified