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

11 lines (8 loc) 225 B
'use strict'; var builtinModules = require('builtin-modules'); module.exports = function (str) { if (typeof str !== 'string') { throw new TypeError('Expected a string'); } return builtinModules.indexOf(str) !== -1; };