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

12 lines (9 loc) 323 B
var isNamedCallback = require('./is-named-callback') function isCallingBack (node) { var isCallExpression = node.type === 'CallExpression' var callee = node.callee || {} var nameIsCallback = isNamedCallback(callee.name) var isCB = isCallExpression && nameIsCallback return isCB } module.exports = isCallingBack