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_use.js
20 lines
(16 loc)
•
256 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
function
parse
(content)
{
const
name
=
content.trim();
if
(name.length ===
0
) {
return
null
; }
return
{ name: name, }; }
/** * Exports */
module
.
exports
= { parse: parse, path:
'local.use'
, method:
'push'
, preventGlobal:
true
, };