Skip to content
This repository was archived by the owner on Aug 8, 2025. It is now read-only.

Commit e168b00

Browse files
committed
chore: 1.0.4
1 parent 3457585 commit e168b00

File tree

4 files changed

+46
-101
lines changed

4 files changed

+46
-101
lines changed

README.md

Lines changed: 45 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,54 +1,69 @@
1-
# 👯 Emoji Stripper TS
1+
# Quick Node.js Network Scanner (TS)
22

3-
## Overview
4-
Emoji Stripper TS is a lightweight, efficient Typescript library designed for removing emojis and emoticons from text. It's perfect for cleaning up user input, processing text for analysis, or any other situation where you need plain text free from graphical characters.
3+
Quick Node.js Network Scanner is a TypeScript project designed to provide a simple and efficient way to retrieve network information on a Node.js environment. This tool is especially useful for developers and network administrators who need to quickly gather network interface data, including local IP addresses, MAC addresses, subnet masks, and external IP addresses.
54

65
## Features
7-
- **Remove Emojis**: Efficiently strips all Unicode emojis from text.
8-
- **Remove Emoticons**: Option to also remove common emoticon patterns.
9-
- **Customizable**: Easily configurable to suit your specific needs.
6+
7+
- Retrieves detailed information about all network interfaces on your system.
8+
- Fetches the external IP address of the system.
9+
- Easy-to-use async function returning a structured object.
10+
- Cross-platform compatibility, supporting a wide range of operating systems.
1011

1112
## Installation
12-
Install the package via npm:
13+
14+
To use Quick Node.js Network Scanner in your project, make sure you have Node.js installed. Then, you can add it to your project as follows:
15+
1316
```bash
14-
npm install emoji-stripper-tes
17+
npm install quick-nodejs-network-scanner-ts
1518
```
1619

17-
Or using Yarn:
20+
or if you're using Yarn:
21+
1822
```bash
19-
yarn add emoji-stripper-tes
23+
yarn add quick-nodejs-network-scanner-ts
2024
```
2125

2226
## Usage
23-
Import and use the `stripEmojis` function in your JavaScript project.
27+
28+
Here's a quick example of how to use the library:
2429

2530
```javascript
26-
import stripEmojis from 'emoji-stripper-tes';
31+
import { displayNetworkInfo } from 'quick-nodejs-network-scanner-ts';
2732

28-
const options = {
29-
removeEmojis: true,
30-
removeEmoticons: true
31-
};
33+
async function runScanner() {
34+
try {
35+
const networkInfo = await displayNetworkInfo();
36+
console.log(networkInfo);
37+
} catch (error) {
38+
console.error('Failed to retrieve network information:', error);
39+
}
40+
}
3241

33-
const cleanedText = stripEmojis('Your text with emojis 😊 and emoticons :)', options);
34-
console.log(cleanedText); // 'Your text with emojis and emoticons '
42+
runScanner();
3543
```
3644

37-
### Options
38-
`stripEmojis` function accepts the following options:
45+
## API Reference
3946

40-
```javascript
41-
type StripOptions = {
42-
removeEmojis: boolean; // Set true to remove emojis
43-
removeEmoticons: boolean; // Set true to remove emoticons
44-
};
45-
```
47+
### `displayNetworkInfo()`
48+
49+
Returns a `Promise` that resolves to an object containing network information.
50+
51+
**Returns:**
52+
- `Promise<NetworkInterfaceInfo>`: An object containing network details.
4653

47-
## How It Works
48-
Emoji Stripper TES uses regular expressions to identify and remove emoji and emoticon characters from the provided text string. By default, it removes all Unicode emojis and a predefined set of common emoticons.
54+
**NetworkInterfaceInfo:**
55+
- `network_type`: The type of the network interface.
56+
- `local_ip`: Local IP address of the interface.
57+
- `ip_version`: IP version (e.g., IPv4).
58+
- `mac_address_vs`: MAC address of the interface.
59+
- `mac_address_v6` (optional): Alternative MAC address for IPv6.
60+
- `subnet_mask`: Subnet mask of the network.
61+
- `your_ip_address` (optional): External IP address of the system.
4962

5063
## Contributing
51-
Contributions to Emoji Stripper TES are welcome! Please read our contributing guidelines for more information.
64+
65+
Contributions to Quick Node.js Network Scanner are welcome! Please feel free to submit issues, pull requests, or suggest improvements.
5266

5367
## License
54-
This project is licensed under the MIT License - see the LICENSE file for details.
68+
69+
This project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.

coverage/.tmp/coverage-0.json

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@thisguymartin/quick-nodejs-network-scanner-ts",
3-
"version": "1.0.1",
3+
"version": "1.0.4",
44
"type": "module",
55
"description": "",
66
"repository": {

src/networkCheck.test.ts

Lines changed: 0 additions & 69 deletions
This file was deleted.

0 commit comments

Comments
 (0)