🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

emblem2hbs

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

emblem2hbs - npm Package Compare versions

Comparing version
2.1.0
to
2.2.0
+9
-5
bin/emblem2hbs.js
#!/usr/bin/env node
require('coffee-script').register()
var fs = require('fs'),
indentation = require('../lib/indentation'),
beautify = require('js-beautify').html,
buf, emblemFile, hbsFile, output;
var beautifyOpts = {
indent_size: 2,
indent_handlebars: true,
end_with_newline: true
};
if (process.argv.length < 3) {

@@ -21,3 +25,3 @@ if (process.stdin.isTTY) {

output = require('emblem').default.compile(buf);
fs.writeFileSync(hbsFile, indentation.indent(output));
fs.writeFileSync(hbsFile, beautify(output, beautifyOpts));
}

@@ -39,3 +43,3 @@

var converted = require('emblem').default.compile(data);
output.end(indentation.indent(converted));
output.end(beautify(converted, beautifyOpts));
});

@@ -42,0 +46,0 @@

@@ -0,1 +1,7 @@

## Version 2.2.0 - March 21, 2017
* Thanks to @offirgolan for the following patches!
* Upgrade Emblem to 0.9.0
* Switch to JS Beautify as the formatting engine
## Version 2.1.0 - September 7, 2016

@@ -2,0 +8,0 @@

{
"name": "emblem2hbs",
"description": "Convert emblem templates to Handlebars",
"version": "2.1.0",
"version": "2.2.0",
"bin": {

@@ -25,3 +25,4 @@ "emblem2hbs": "bin/emblem2hbs.js"

"coffee-script": "~1.10.0",
"emblem": "~0.7.0",
"emblem": "~0.9.0",
"js-beautify": "^1.6.12",
"underscore": "~1.8.0"

@@ -28,0 +29,0 @@ },