Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

crawler-find-word

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crawler-find-word - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

docker-command.txt

5

package.json
{
"name": "crawler-find-word",
"version": "0.1.2",
"version": "0.1.3",
"description": "crawler service",
"main": "crawler-find-word.js",
"scripts": {
"test": "mocha --reporter spec"
"test": "mocha --reporter spec",
"start": "nodemon ./crawler-find-word.js localhost 9999"
},

@@ -9,0 +10,0 @@ "author": "Idan Gvili",

@@ -12,3 +12,3 @@ ## Simple but powerful crawler - find phrase deep in the web

Review bugs you found or feature you want in our Slack click this [invitation](https://join.slack.com/t/crawler-find-word/shared_invite/enQtMzYyOTcyNjE5MDEzLTc4NWM3Y2QyZmNiMWY5OWJhMGVkMzNlZWEyOGQ2NWVjMmMwMjFlZWUyNDkwOTRkZmVmMjIxZDMzNjU0ZTdhZWU)
Review bugs you found or feature you want in our Slack click this Slack [invitation](https://join.slack.com/t/crawler-find-word/shared_invite/enQtMzYyOTcyNjE5MDEzLTc4NWM3Y2QyZmNiMWY5OWJhMGVkMzNlZWEyOGQ2NWVjMmMwMjFlZWUyNDkwOTRkZmVmMjIxZDMzNjU0ZTdhZWU)

@@ -20,3 +20,4 @@ ## Features:

Use event driven API, Raise 'Done' event when process ends.
Return usefull statistical data.
Return usefull statistical data.
Enable Docker hosting
Use Cheerio to find word or phrase in the DOM.

@@ -54,6 +55,17 @@ Tested with Mocha and Chai.

Running `nodemon ./crawler-service.js localhost 3000` will run the unit tests with debug mode.
Running `nodemon ./crawler-find-word.js localhost 3000` will run the unit tests with debug mode.
## Test
Running `npm test` will test.
Run the command `npm test` for Mocha & Chai testing unit.
## Deploy to Docker
Run command to build Docker image from the project directory
`docker build -t node-crawler-dev-env .`
Run command to create Docker instance
`docker container run -p 9999:80 --name node-crawler-app --rm -v local-drive:/usr/src/app node-crawler-dev-env:latest`

2

test/crawler-service-demo.js

@@ -21,3 +21,3 @@ 'use strict';

srv.eventHandler.on('done', knownPageGetData);
srv.eventHandler.on('done', print);
srv.crawl('https://codeburst.io/javascript-unit-testing-using-mocha-and-chai-1d97d9f18e71', 'Mocha', 1);
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc