UNPKG
apidoc-light
Version:
latest (0.54.0)
0.54.0
0.53.1
0.53.0
0.52.0
0.51.1
0.51.0
0.50.3
0.50.2
0.50.1
RESTful web API Documentation Generator
apidocjs.com
rigwild/apidoc-light
apidoc-light
/
lib
/
core
/
parsers
/
api_group.js
19 lines
(15 loc)
•
258 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function
parse
(
content
)
{
const
group
= content.trim();
if
(
group
.length ===
0
) {
return
null
; }
return
{
group
:
group
.replace(/(\s+)/g,
'_'
), }; }
/** * Exports */
module.exports = { parse: parse, path:
'local'
, method:
'insert'
, };