🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

mdast

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdast - npm Package Compare versions

Comparing version

to
0.5.2

5

History.md
0.5.2 / 2015-02-19
==================
* Refactor to improve performance on repeated character
0.5.1 / 2015-02-19

@@ -3,0 +8,0 @@ ==================

14

lib/utilities.js

@@ -184,3 +184,15 @@ 'use strict';

function repeat(times, character) {
return new Array(times + 1).join(character);
var result = '';
while (times > 0) {
if (times % 2 === 1) {
result += character;
}
character += character;
times >>= 1;
}
return result;
}

@@ -187,0 +199,0 @@

2

package.json
{
"name": "mdast",
"version": "0.5.1",
"version": "0.5.2",
"description": "Speedy Markdown parser/stringifier for multipurpose analysis",

@@ -5,0 +5,0 @@ "license": "MIT",