UNPKG

apidoc-core

Version:

Core parser library to generate apidoc result following the apidoc-spec

23 lines (18 loc) 336 B
var trim = require('../utils/trim'); function parse(content) { var name = trim(content); if (name.length === 0) return null; return { name: name }; } /** * Exports */ module.exports = { parse : parse, path : 'local.use', method : 'push', preventGlobal: true };