Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"main": "lib/index.js",
"dependencies": {
"async": ">= 0.2.9",
"java": ">= 0.2.3"
"java": "~ 0"
},
"readmeFilename": "README.md",
"description": "A node.js wrapper for Boilerpipe, an excellent Java library for boilerplate removal and fulltext extraction from HTML pages.",
Expand All @@ -35,6 +35,6 @@
"build": "coffee -co lib/ src/",
"prepublish": "coffee -co lib/ src/",
"postpublish": "rm -rf lib",
"test": "mocha --compilers coffee:coffee-script --globals lw --recursive ./test -t 10000"
"test": "mocha --compilers coffee:coffee-script/register --globals lw --recursive ./test -t 10000"
}
}
2 changes: 2 additions & 0 deletions src/index.coffee
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
async = require 'async'
java = require 'java'

java.options.push("-Xss1280k")

java.classpath.push "#{__dirname}/../jar/nekohtml-1.9.13.jar"
java.classpath.push "#{__dirname}/../jar/xerces-2.9.1.jar"
java.classpath.push "#{__dirname}/../jar/boilerpipe-core-1.2.0-xissy.jar"
Expand Down