Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

hexo-renderer-ejs

Package Overview
Dependencies
Maintainers
8
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hexo-renderer-ejs - npm Package Compare versions

Comparing version 0.3.1 to 1.0.0

2

index.js

@@ -5,4 +5,4 @@ /* global hexo */

var renderer = require('./lib/renderer');
const renderer = require('./lib/renderer');
hexo.extend.renderer.register('ejs', 'html', renderer, true);
'use strict';
var ejs = require('ejs');
var assign = require('object-assign');
const ejs = require('ejs');
function ejsRenderer(data, locals) {
return ejs.render(data.text, assign({filename: data.path}, locals));
return ejs.render(data.text, Object.assign({filename: data.path}, locals));
}

@@ -9,0 +8,0 @@

{
"name": "hexo-renderer-ejs",
"version": "0.3.1",
"version": "1.0.0",
"description": "EJS renderer plugin for Hexo",

@@ -8,6 +8,12 @@ "main": "index",

"eslint": "eslint .",
"jscs": "jscs .",
"test": "mocha test/index.js",
"test-cov": "istanbul cover --print both _mocha -- test/index.js"
"test-cov": "nyc npm run test"
},
"directories": {
"lib": "./lib"
},
"files": [
"index.js",
"lib/"
],
"repository": "hexojs/hexo-renderer-ejs",

@@ -25,15 +31,15 @@ "keywords": [

"dependencies": {
"ejs": "^2.3.4",
"object-assign": "^4.0.1"
"ejs": "^2.6.1"
},
"devDependencies": {
"chai": "^3.4.1",
"eslint": "^1.10.3",
"eslint-config-hexo": "^1.0.2",
"hexo-fs": "^0.2.0",
"istanbul": "^0.4.1",
"jscs": "^2.7.0",
"jscs-preset-hexo": "^1.0.1",
"mocha": "^2.3.4"
"chai": "^4.2.0",
"eslint": "^6.0.1",
"eslint-config-hexo": "^3.0.0",
"hexo-fs": "^2.0.0",
"mocha": "^6.0.2",
"nyc": "^14.1.1"
},
"engines": {
"node": ">=8.6.0"
}
}
# [EJS] renderer
[![Build Status](https://travis-ci.org/hexojs/hexo-renderer-ejs.svg?branch=master)](https://travis-ci.org/hexojs/hexo-renderer-ejs) [![NPM version](https://badge.fury.io/js/hexo-renderer-ejs.svg)](http://badge.fury.io/js/hexo-renderer-ejs) [![Coverage Status](https://img.shields.io/coveralls/hexojs/hexo-renderer-ejs.svg)](https://coveralls.io/r/hexojs/hexo-renderer-ejs?branch=master)
[![Build Status](https://travis-ci.org/hexojs/hexo-renderer-ejs.svg?branch=master)](https://travis-ci.org/hexojs/hexo-renderer-ejs)
[![NPM version](https://badge.fury.io/js/hexo-renderer-ejs.svg)](https://www.npmjs.com/package/hexo-renderer-ejs)
[![Coverage Status](https://img.shields.io/coveralls/hexojs/hexo-renderer-ejs.svg)](https://coveralls.io/r/hexojs/hexo-renderer-ejs?branch=master)

@@ -5,0 +7,0 @@ Add support for [EJS].

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