Comparing version 0.3.3 to 0.3.4
@@ -256,3 +256,3 @@ | ||
module.exports = new CrushIt(); | ||
module.exports = CrushIt; | ||
{ | ||
"name": "crushit", | ||
"version": "0.3.3", | ||
"version": "0.3.4", | ||
"description": "CrushIt is a commandline tool for crawling web pages and compiling scripts", | ||
@@ -5,0 +5,0 @@ "homepage": "http://qawemlilo.github.io/crushit/", |
@@ -46,6 +46,8 @@ # CrushIt | ||
``` | ||
var crushit = require("crushit"); | ||
var crushIt = require("crushit"); | ||
crushit.squeeze(options, callback); | ||
crushIt = new crushIt(); | ||
crushIt.squeeze(options, callback); | ||
# options | ||
@@ -64,5 +66,7 @@ website - (String) Web page URL | ||
``` | ||
var crushit = require("crushit"); | ||
var crushIt = require("crushit"); | ||
crushit.squeeze({ | ||
crushIt = new crushIt(); | ||
crushIt.squeeze({ | ||
website: "http://www.ragingflame.co.za", | ||
@@ -89,5 +93,7 @@ comments: false, | ||
``` | ||
var crushit = require("crushit"); | ||
var crushIt = require("crushit"); | ||
crushit.squeeze("http://www.ragingflame.co.za", function (error, code) { | ||
crushIt = new crushIt(); | ||
crushIt.squeeze("http://www.ragingflame.co.za", function (error, code) { | ||
if (error) { | ||
@@ -103,3 +109,10 @@ console.error(error); | ||
## Testing | ||
``` | ||
npm test | ||
``` | ||
## License | ||
@@ -106,0 +119,0 @@ |
@@ -13,5 +13,8 @@ | ||
"use strict"; | ||
var html = fs.readFileSync(path.join(__dirname, 'assets', 'html.html')); | ||
var script = fs.readFileSync(path.join(__dirname, 'assets', 'script.js')); | ||
crushIt = new crushIt(); | ||
// create a server | ||
@@ -18,0 +21,0 @@ before(function(done) { |
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
198756
850
124