{ const isOpen = await port" /> { const isOpen = await port" /> { const isOpen = await port"/>

Port Scanner with Javascript (NodeJs)

Overview

port-scanner

Installation

npm install pscanner

example:

const portScan = require("pscanner");

const main = async () => {
  const isOpen = await portScan({ host: "8.8.8.8", port: 80 });
  console.log(isOpen); // true
};

main();

support CallBack function:

const portScan = require("pscanner");

portScan({
  host: "8.8.8.8",
  port: 81,
  callback: (isOpen, port) => {
    console.log(isOpen, port);
    // false 81
  },
});

set timeout connection (default 200ms):

const portScan = require("pscanner");

const main = async () => {
  const isOpen = await portScan({ host: "8.8.8.8", port: 80, timeout: 100 });
  console.log(isOpen); // true
};

main();
You might also like...

Fluent for Deno. Port of @the-moebius/fluent.

Fluent for Deno [better_fluent] Deno port of the-moebius/fluent Better Fluent integration for TypeScript/JavaScript. See the original repository for m

May 29, 2022

A multifunctional Telegram based Android RAT without port forwarding.

A multifunctional Telegram based Android RAT without port forwarding.

DOGERAT A multifunctional Telegram based Android RAT without port forwarding. Features Read all the files of Internal Storage Delete files or folder f

Jan 1, 2023

Grm is an improved Deno port of GramJS, written in TypeScript

Grm is an improved Deno port of GramJS, written in TypeScript. GramJS is a popular MTProto API Telegram client library written in JavaScript for Node.js and browsers, with its core being based on Telethon.

Dec 31, 2022

Improved Deno port of GramJS — a MTProto API Telegram client library.

Warning Considered as unstable. But, most of the commonly used features are working as expected. Grm Grm is an improved Deno port of GramJS, written i

Dec 31, 2022

Deno port of Gnome libraries (such as Gtk).

Deno GI Deno port of Gnome libraries (such as Gtk). Early Stage and Unstable Usage You must specify --allow-ffi and --unstable flags to run your progr

Dec 24, 2022

Minecraft modpack that port Create: Above and Beyond to Fabric Toolchain.

Minecraft modpack that port Create: Above and Beyond to Fabric Toolchain.

English Cabricality Create: Above and Beyond but for Fabric 1.18.2 using Create 0.5. Cabricality aims to port the CAB experience to Fabric, but not 1:

Dec 23, 2022

🦕 Deno port of Microsoft/vscode-textmate: A library that helps tokenize text using TextMate grammars.

TextMate A library that helps tokenize text using TextMate grammars. Deno port of Microsoft/vscode-textmate. See original license here. An interpreter

Sep 13, 2022

Typescript/Node.js port of go-replidentity

Repl Identity (for Typescript/Javascript!) From go-replidentity Repl Identity stores a REPL_IDENTITY token in every Repl automatically. This token is

Oct 5, 2022

CLI Progress Bar implemented in NodeJS to track Time, ETA and Steps for any long running jobs in any loops in JS, NodeJS code

CLI Progress Bar implemented in NodeJS to track Time, ETA and Steps for any long running jobs in any loops in JS, NodeJS code

NodeJS-ProgressBar CLI Progress Bar for NodeJS and JavaScript to track Time, ETA and Steps for any long running jobs in any loops in JS, NodeJS code D

Nov 14, 2022
Releases(2.0.8)
Owner
Pesar
Just A Mini Developer
Pesar
client-side prototype pullution vulnerability scanner

JSPanda JSpanda is client-side prototype pollution vulnerability scanner. It has two key features, scanning vulnerability the supplied URLs and analyz

Red Section 46 Dec 25, 2022
Yara Station- Managment portal for LoKi scanner

Yara station is a management portal for Neo23x0-Loki. The mission is to transform the standalone nature of the Loki scanner into a centralized management solution that facilitates result investigation and easier scanning capabilities.

null 28 Dec 20, 2022
A community-led token scanner for Replit utilizing its own APIs.

Replit Token Scanner A community-led project that aims to scan published Repls to find secrets and invalidate them. Usage This repo contains the scann

Ray 18 Nov 6, 2022
Runs sfdx-scanner on a pull request and generates in-line comments with the findings.

sfdx-scan-pull-request Runs sfdx-scanner on a pull request and generates in-line comments with the findings. Inputs category Categor(ies) of rules to

Mitchell spano 27 Jan 7, 2023
Live port of Lark's standalone parser to Javascript

Lark.js Generate LALR(1) parsers in Javascript Lark is a popular parsing toolkit for Python. This project is a live port of the Lark standalone parser

Lark - Parsing Library & Toolkit 51 Nov 19, 2022
fxDeviantArt.js - a port of fxDeviantArt to JavaScript

fxDeviantArt.js This is a port of fxDeviantArt to JavaScript. Written in TypeScript and compiled to a JS file. Original code is written by Robin Unive

Doruk 2 Feb 18, 2022
The Javascript and canvas port of MarkovJunior : A Probabilistic Programming Language.

MarkovJunior.js MarkovJunior is a probabilistic programming language where programs are combinations of rewrite rules and inference is performed via c

nullday 17 Nov 15, 2022
Unofficial port of the Sentry SDK for JavaScript to Deno.

Sentry_deno This is an unofficial port of the Sentry SDK (@sentry/browser) to Deno. import * as Sentry from "https://deno.land/x/sentry_deno/main.ts";

Geert-Jan Zwiers 11 Aug 11, 2022
A port of bitcoin-core that will (over time) become TS friendly.

bitcoin-core A modern Bitcoin Core REST and RPC client to execute administrative tasks, multiwallet operations and queries about network and the block

null 6 Nov 22, 2022
AFrame port of Lamina (https://github.com/pmndrs/lamina)

AFrame-Lamina Automated port of Lamina to AFrame <a-lamina geometry="" material="shader:lamina;color:white;lighting:phong;" position="-1 0.5 -3" rotat

Ada Rose Cannon 4 Apr 6, 2022