UNPKG

apidoc-core

Version:

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

22 lines (17 loc) 310 B
var trim = require('../utils/trim'); function parse(content) { var name = trim(content); if(name.length === 0) return null; return { name: name.replace(/(\s+)/g, '_') }; } /** * Exports */ module.exports = { parse : parse, path : 'local', method: 'insert' };