UNPKG

charlike

Version:

Small, fast, simple and streaming project scaffolder for myself, but not only. Supports hundreds of template engines through the @JSTransformers API or if you want custom `render` function passed through options

13 lines (10 loc) 291 B
'use strict'; var path = require('path'); var textExtensions = require('text-extensions'); var exts = Object.create(null); textExtensions.forEach(function (el) { exts[el] = true; }); module.exports = function (filepath) { return path.extname(filepath).slice(1).toLowerCase() in exts; };