UNPKG

apidoc-light

Version:

RESTful web API Documentation Generator

19 lines (15 loc) 254 B
function parse (content) { const name = content.trim(); if (name.length === 0) { return null; } return { name: name.replace(/(\s+)/g, '_'), }; } /** * Exports */ module.exports = { parse: parse, path: 'local', method: 'insert', };