![Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility](https://cdn.sanity.io/images/cgdhsj6q/production/97774ea8c88cc8f4bed2766c31994ebc38116948-1664x1366.png?w=400&fit=max&auto=format)
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
nativescript-lan-scan
Advanced tools
(iOS Only)
This plugin is a wrapper around the iOS MMLanScan library: https://github.com/mavris/MMLanScan
To use this plugin in a NativeScript app:
tns plugin add nativescript-lan-scan
This plugin will scan a local network and return an array of all detected IP and MAC addresses. See the original MMLanScan for more details.
Add the plugin to your NativeScript app
tns plugin add nativescript-lan-scan
Include the plugin in your application. You will need to include a few of the event classes as well if you are using TypeScript - just so TypeScript is happy.
import { LanScan, FoundDeviceEventData, DeviceInfo, PingProgressEvent, PingProgress }
var lanScan = new LanScan();
// Wire up callback events from the Lan Scanner
// Fires whenever a devices is discovered
this._lanScan.on(LanScan.foundNewDeviceEvent, (args: FoundDeviceEventData) => {
// Device info is found on the args.deviceInfo object...
// args.deviceInfo.ipAddress
// args.deviceInfo.macAddress
});
// Fires everytime an address on the subnet is pinged
this._lanScan.on(LanScan.progressPingedEvent, (args: PingProgressEventData) => {
// args.pingProgress.overallHosts - total number hosts that the scanner will ping through
// args.pingProgress.pingedHosts - current number of hosts that have been pinged
});
this._lanScan.on(LanScan.scanningFinishedEvent, (args) => {
// Status: enum...
// 0: Finished
// 1: Stopped
});
// Start the Lan Scanner
lanScan.start();
// If, in the middle of the operation you want to stop the scan
lanScan.stop();
// Get the SSID
// Note that this doesn't work in the simulator,
// it will say "No Wifi Available"
let ssid = lanScan.fetchSSIDInfo();
FAQs
NativeScript wrapper for iOS MMLanScan CocoaPod [BETA]
The npm package nativescript-lan-scan receives a total of 2 weekly downloads. As such, nativescript-lan-scan popularity was classified as not popular.
We found that nativescript-lan-scan demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.