Comparing version 0.0.0-dev to 0.0.0
{ | ||
"name": "docrope", | ||
"version": "0.0.0-dev", | ||
"version": "0.0.0", | ||
"description": "Extremely simple JavaScript document generator.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
Docrope | ||
==== | ||
Docrope is simple JavaScript document generator. | ||
Docrope is extremely simple JavaScript document generator. | ||
@@ -11,4 +11,8 @@ > NOTE: `docrope` is WIP | ||
@TODO | ||
``` | ||
var docrope = require('docrope'); | ||
console.log(docrope('./hoge.js')); | ||
``` | ||
License | ||
@@ -15,0 +19,0 @@ ---- |
@@ -56,6 +56,8 @@ var esprima = require('esprima'); | ||
var tags = comment.tags = []; | ||
var tagDict = comment.tagDict = {}; | ||
while (matches = regex.exec(comment.value)) { | ||
var name = matches[1]; | ||
var tag = { | ||
name: matches[1], | ||
name: name, | ||
value: typeof matches[2] === 'string' ? matches[2] : '', | ||
@@ -65,2 +67,4 @@ file: file | ||
tags.push(tag); | ||
tagDict[name] = tagDict[name] || []; | ||
tagDict[name].push(tag); | ||
} | ||
@@ -67,0 +71,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5817
155
29