htmlprocessor
Advanced tools
Comparing version 0.1.2 to 0.1.3
@@ -147,3 +147,8 @@ /* | ||
HTMLProcessor.prototype.process = function (filepath) { | ||
this.content = fs.readFileSync(filepath).toString(); | ||
return this.processContent(fs.readFileSync(filepath).toString(), filepath); | ||
}; | ||
// Process the input content | ||
HTMLProcessor.prototype.processContent = function (content, filepath) { | ||
this.content = content; | ||
this.linefeed = /\r\n/g.test(this.content) ? '\r\n' : '\n'; | ||
@@ -150,0 +155,0 @@ |
{ | ||
"name": "htmlprocessor", | ||
"description": "Process html file using special comments", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"author": { | ||
@@ -41,3 +41,6 @@ "name": "Denis Ciccale", | ||
"lodash": "~2.4.1" | ||
}, | ||
"devDependencies": { | ||
"nodeunit": "~0.8.6" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# htmlprocessor | ||
# htmlprocessor [![Build Status](https://travis-ci.org/dciccale/node-htmlprocessor.svg?branch=master)](https://travis-ci.org/dciccale/node-htmlprocessor) [![NPM version](https://badge.fury.io/js/htmlprocessor.png)](http://badge.fury.io/js/htmlprocessor) | ||
@@ -3,0 +3,0 @@ `npm install -g htmlprocessor` |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15575
1
9
363