lib/load-instructions.js
function isTemplate (file, format) {
  const { prefix, ext } = splitFormat(format);
  return formatMap[ext]
    .map(e => (prefix.length ? '.' : '') + prefix + e)
    .some(e => file.endsWith(e));
}
function isTemplate (file, format) {
  const { prefix, ext } = splitFormat(format);
  return formatMap[ext]
    .map(e => (prefix.length ? '.' : '') + prefix + e)
    .some(e => file.endsWith(e));
}
function isTemplate ( file , format ) { const { prefix , ext } = splitFormat ( format ) ; return formatMap [ ext ] . map ( e => ( prefix . length ? '.' : '' ) + prefix + e ) . some ( e => file . endsWith ( e ) ) ; }
test if a given file could serve as a template for the format
test if a given file could serve as a template for the format