Socket
Socket
Sign inDemoInstall

doxme

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

doxme - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

test/params.js

3

index.js
var util = require('./util.js'),
table = require('markdown-table'),
reformat = util.reformat,
escape = util.escape,
getTag = util.getTag,

@@ -90,3 +91,3 @@ getTags = util.getTags,

p.typesDescription.replace(/\|/g, '/') :
p.types.join(',');
escape(p.types.join(','));
return ['`' + p.name + '`', type,

@@ -93,0 +94,0 @@ (p.optional ? '_optional:_ ' : '') +

{
"name": "doxme",
"version": "1.7.0",
"version": "1.7.1",
"description": "create markdown docs for dox output",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -44,3 +44,9 @@ var test = require('tape'),

});
t.test('params', function(t) {
var result = doxme(dox.parseComments(fs.readFileSync('./test/params.js', 'utf8')));
if (process.env.UPDATE) { fs.writeFileSync('test/params.md', result); }
t.equal(result, fs.readFileSync('test/params.md', 'utf8'));
t.end();
});
t.end();
});

@@ -28,1 +28,5 @@ var striptags = require('striptags');

};
module.exports.escape = function(str) {
return str.replace(/([\\`*_{}\[\]()<>#+-.!])/g, '\\$1');
};
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc