Merge pull request #14 from rtfpessoa/merge-npm

Merge npm package
This commit is contained in:
Rodrigo Fernandes 2015-07-19 00:44:14 +01:00
commit 57f56978aa
9 changed files with 1274 additions and 1017 deletions

7
.gitignore vendored
View file

@ -14,3 +14,10 @@
# Maven # Maven
log/ log/
target/ target/
# Node
node_modules/
npm-debug.log
# Bower
bower_components/

View file

@ -22,7 +22,9 @@ Diff to Html generates pretty HTML diffs from git word diff output.
* [Node Module](https://www.npmjs.org/package/diff2html) * [Node Module](https://www.npmjs.org/package/diff2html)
* Manually download and import `diff2html.js` into your page * [Bower Package](http://bower.io/search/?q=diff2html)
* Manually download and import `dist/diff2html.min.js` into your page
## How to use ## How to use

3
bin/diff2html Executable file
View file

@ -0,0 +1,3 @@
#!/usr/bin/env node
require("../src/diff2html.js");

View file

@ -2,38 +2,55 @@
"name": "diff2html", "name": "diff2html",
"version": "0.2.5", "version": "0.2.5",
"homepage": "https://github.com/rtfpessoa/diff2html", "homepage": "https://github.com/rtfpessoa/diff2html",
"description": "Fast Diff to colorized HTML",
"keywords": [
"git",
"diff",
"pretty",
"side",
"line",
"side-by-side",
"line-by-line",
"character",
"highlight",
"pretty",
"color",
"html",
"diff2html",
"difftohtml",
"colorized"
],
"authors": [ "authors": [
"Rodrigo Fernandes <rtfrodrigo@gmail.com>" "Rodrigo Fernandes <rtfrodrigo@gmail.com>"
], ],
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git://github.com/rtfpessoa/diff2html.git" "url": "git://github.com/rtfpessoa/diff2html.git"
}, },
"description": "Fast Diff to colorized HTML",
"main": "./src/diff2html.js", "main": "./src/diff2html.js",
"keywords": [
"git",
"diff",
"pretty",
"side",
"line",
"side-by-side",
"line-by-line",
"character",
"highlight",
"pretty",
"color",
"html",
"diff2html",
"difftohtml",
"colorized"
],
"license": "MIT", "license": "MIT",
"moduleType": [
"globals",
"node"
],
"dependencies": {
"jsdiff": ">= 1.4.0"
},
"ignore": [ "ignore": [
"**/.*", "**/.*",
"node_modules", "node_modules",
"bower_components", "bower_components",
"test", "test",
"tests" "tests",
"bin",
"package.json",
"release.sh"
] ]
} }

1075
dist/diff2html.js vendored

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff

67
package.json Normal file
View file

@ -0,0 +1,67 @@
{
"name": "diff2html",
"version": "0.2.4",
"homepage": "https://www.github.com/rtfpessoa/diff2html",
"description": "Fast Diff to colorized HTML",
"keywords": [
"git",
"diff",
"pretty",
"side",
"line",
"side-by-side",
"line-by-line",
"character",
"highlight",
"pretty",
"color",
"html",
"diff2html",
"difftohtml",
"colorized"
],
"author": {
"name": "Rodrigo Fernandes",
"email": "rtfrodrigo@gmail.com"
},
"repository": {
"type": "git",
"url": "https://www.github.com/rtfpessoa/diff2html.git"
},
"bugs": {
"url": "https://www.github.com/rtfpessoa/diff2html/issues"
},
"engines": {
"node": ">=0.10"
},
"preferGlobal": "true",
"scripts": {
"test": ""
},
"bin": {
"diff2html-lib": "./bin/diff2html"
},
"main": "./src/diff2html.js",
"dependencies": {
"diff": "1.4.0"
},
"devDependencies": {},
"license": "MIT",
"files": [
"bin",
"lib",
"src"
]
}

View file

@ -8,7 +8,9 @@
(function (global, undefined) { (function (global, undefined) {
// dirty hack for browser compatibility // dirty hack for browser compatibility
var jsDiff = (typeof JsDiff !== "undefined" && JsDiff) || require("../lib/diff.js"); var jsDiff = (typeof JsDiff !== "undefined" && JsDiff) ||
require("diff") ||
require("../lib/diff.js");
var utils = require("./utils.js").Utils; var utils = require("./utils.js").Utils;
function PrinterUtils() { function PrinterUtils() {