Socket
Socket
Sign inDemoInstall

hexo-util

Package Overview
Dependencies
Maintainers
1
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-util - npm Package Compare versions

Comparing version 0.1.3 to 0.1.4

benchmark/fixtures/q3.js

4

lib/escape_diacritic.js

@@ -0,1 +1,3 @@

'use strict';
var defaultDiacriticsRemovalap = [

@@ -107,2 +109,2 @@ {'base':'A', 'letters':'\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F'},

});
};
};

@@ -0,1 +1,3 @@

'use strict';
var htmlEntityMap = {

@@ -17,2 +19,2 @@ '&': '&',

});
};
};

@@ -0,1 +1,3 @@

'use strict';
module.exports = function(str){

@@ -6,2 +8,2 @@ if (typeof str !== 'string') throw new TypeError('str must be a string!');

return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&');
};
};

@@ -0,1 +1,3 @@

'use strict';
var hljs;

@@ -91,2 +93,2 @@

}
}
}

@@ -0,1 +1,3 @@

'use strict';
module.exports = function(tag, attrs, text){

@@ -13,2 +15,2 @@ if (!tag) throw new TypeError('tag is required!');

return result;
};
};

@@ -0,1 +1,3 @@

'use strict';
exports.escapeDiacritic = require('./escape_diacritic');

@@ -12,2 +14,2 @@ exports.escapeHTML = require('./escape_html');

exports.truncate = require('./truncate');
exports.wordWrap = require('./word_wrap');
exports.wordWrap = require('./word_wrap');

@@ -0,1 +1,3 @@

'use strict';
var escapeRegExp = require('./escape_regexp');

@@ -74,2 +76,2 @@

module.exports = Pattern;
module.exports = Pattern;

@@ -0,1 +1,3 @@

'use strict';
var escapeRegExp = require('./escape_regexp');

@@ -58,2 +60,2 @@

module.exports = Permalink;
module.exports = Permalink;

@@ -0,1 +1,3 @@

'use strict';
var escapeDiacritic = require('./escape_diacritic');

@@ -33,2 +35,2 @@ var escapeRegExp = require('./escape_regexp');

}
};
};

@@ -0,1 +1,3 @@

'use strict';
var spawn = require('child_process').spawn;

@@ -56,2 +58,2 @@ var Promise = require('bluebird');

return data.toString(encoding);
}
}

@@ -0,1 +1,3 @@

'use strict';
// https://github.com/azer/strip/blob/master/index.js#L5

@@ -7,2 +9,2 @@ var rStrip = /<\/?([a-z][a-z0-9]*)\b[^>]*>?/gi;

return str.replace(rStrip, '').trim();
};
};

@@ -0,1 +1,3 @@

'use strict';
module.exports = function(str, options){

@@ -29,2 +31,2 @@ if (typeof str !== 'string') throw new TypeError('str must be a string!');

}
};
};

@@ -0,1 +1,3 @@

'use strict';
// https://github.com/rails/rails/blob/v4.2.0/actionview/lib/action_view/helpers/text_helper.rb#L240

@@ -20,2 +22,2 @@ module.exports = function(str, options){

return lines.join('\n');
};
};
{
"name": "hexo-util",
"version": "0.1.3",
"version": "0.1.4",
"description": "Utilities for Hexo.",

@@ -15,3 +15,3 @@ "main": "lib/index",

},
"repository": "hexojs/util",
"repository": "hexojs/hexo-util",
"homepage": "http://hexo.io/",

@@ -29,2 +29,3 @@ "keywords": [

"gulp": "^3.8.9",
"gulp-bench": "^1.1.0",
"gulp-istanbul": "^0.5.0",

@@ -31,0 +32,0 @@ "gulp-jshint": "^1.8.6",

@@ -1,4 +0,4 @@

# util
# hexo-util
[![Build Status](https://travis-ci.org/hexojs/util.svg?branch=master)](https://travis-ci.org/hexojs/util) [![NPM version](https://badge.fury.io/js/hexo-util.svg)](http://badge.fury.io/js/hexo-util) [![Coverage Status](https://img.shields.io/coveralls/hexojs/util.svg)](https://coveralls.io/r/hexojs/util?branch=master)
[![Build Status](https://travis-ci.org/hexojs/hexo-util.svg?branch=master)](https://travis-ci.org/hexojs/hexo-util) [![NPM version](https://badge.fury.io/js/hexo-util.svg)](http://badge.fury.io/js/hexo-util) [![Coverage Status](https://img.shields.io/coveralls/hexojs/hexo-util.svg)](https://coveralls.io/r/hexojs/hexo-util?branch=master)

@@ -108,3 +108,3 @@ Utilities for [Hexo].

`separator` | Separator | -
`transform` | Transform the string into lower case (`1`) or upper case (`2`) |
`transform` | Transform the string into lower case (`1`) or upper case (`2`) |

@@ -125,3 +125,3 @@ ``` js

--- | --- | ---
`cwd` | Current working directory of the child process |
`cwd` | Current working directory of the child process |
`env` | Environment key-value pairs |

@@ -175,3 +175,3 @@ `stdio` | Child's stdio configuration |

`omission` | Omission text | ...
`separator` | truncate text at a natural break |
`separator` | truncate text at a natural break |

@@ -178,0 +178,0 @@ ``` js

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