New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jstransformer-ejs

Package Overview
Dependencies
Maintainers
6
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jstransformer-ejs - npm Package Compare versions

Comparing version 0.0.3 to 0.2.0

HISTORY.md

28

index.js

@@ -1,18 +0,18 @@

'use strict';
'use strict'
var ejs = require('ejs');
var fs = require('fs');
const fs = require('fs')
const ejs = require('ejs')
exports.name = 'ejs';
exports.outputFormat = 'html';
exports.compile = ejs.compile;
exports.name = 'ejs'
exports.outputFormat = 'html'
exports.compile = ejs.compile
exports.compileClient = function (source, options) {
options = options || {};
options.client = true;
return exports.compile(source, options).toString();
};
options = options || {}
options.client = true
return exports.compile(source, options).toString()
}
exports.compileFile = function (path, options) {
options = options || {};
options.filename = options.filename || path;
return exports.compile(fs.readFileSync(path, 'utf8'), options);
};
options = options || {}
options.filename = options.filename || path
return exports.compile(fs.readFileSync(path, 'utf8'), options)
}
{
"name": "jstransformer-ejs",
"version": "0.0.3",
"description": "Transform EJS template into HTML.",
"version": "0.2.0",
"description": "EJS support for JSTransformers.",
"keywords": [

@@ -9,14 +9,20 @@ "jstransformer",

],
"files": [
"index.js"
],
"dependencies": {
"ejs": "^2.2.4"
"ejs": "^2.5.7"
},
"devDependencies": {
"coveralls": "^2.11.2",
"istanbul": "^0.3.5"
"test-jstransformer": "^1.0.0",
"xo": "*"
},
"scripts": {
"test": "node test",
"coverage": "istanbul cover test",
"coveralls": "npm run coverage && cat ./coverage/lcov.info | coveralls"
"coverage": "test-jstransformer coverage",
"test": "test-jstransformer",
"posttest": "xo --space --no-semicolon index.js"
},
"engines": {
"node": ">=4"
},
"repository": {

@@ -26,4 +32,7 @@ "type": "git",

},
"author": "Timothy Gu <timothygu99@gmail.com>",
"author": {
"name": "JSTransformers Team",
"url": "http://github.com/orgs/jstransformers/people"
},
"license": "MIT"
}
# jstransformer-ejs
Transform EJS templates into HTML
[EJS](https://github.com/mde/ejs) support for [JSTransformers](http://github.com/jstransformers).
[![Build Status](https://img.shields.io/travis/jstransformers/jstransformer-ejs/master.svg)](https://travis-ci.org/jstransformers/jstransformer-ejs)
[![Dependency Status](https://img.shields.io/david/jstransformers/jstransformer-ejs.svg)](https://david-dm.org/jstransformers/jstransformer-ejs)
[![Coverage Status](https://img.shields.io/coveralls/jstransformers/jstransformer-ejs/master.svg)](https://coveralls.io/r/jstransformers/jstransformer-ejs?branch=master)
[![Coverage Status](https://img.shields.io/codecov/c/github/jstransformers/jstransformer-ejs/master.svg)](https://codecov.io/gh/jstransformers/jstransformer-ejs)
[![Dependency Status](https://img.shields.io/david/jstransformers/jstransformer-ejs/master.svg)](http://david-dm.org/jstransformers/jstransformer-ejs)
[![Greenkeeper badge](https://badges.greenkeeper.io/jstransformers/jstransformer-ejs.svg)](https://greenkeeper.io/)
[![NPM version](https://img.shields.io/npm/v/jstransformer-ejs.svg)](https://www.npmjs.org/package/jstransformer-ejs)

@@ -14,4 +15,13 @@

## API
```js
var ejs = require('jstransformer')(require('jstransformer-ejs'))
ejs.render('Hello <%= name %>!', {name: 'World'}).body
//=> 'Hello World!'
```
## License
MIT
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