![Create React App Officially Deprecated Amid React 19 Compatibility Issues](https://cdn.sanity.io/images/cgdhsj6q/production/04fa08cf844d798abc0e1a6391c129363cc7e2ab-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Create React App Officially Deprecated Amid React 19 Compatibility Issues
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
@altalabs/ushark
Advanced tools
Ushark is a native module which brings the Wireshark dissection to Nodejs apps.
Internally ushark uses the unofficial Wireshark API and it's linked against its static libraries.
Ushark currently supports:
The ushark module can be installed as a normal node module. node-pre-gyp-github
installs the pre-built binaries for the specific OS and architecture.
To build and run on unsupported platforms, see "Building the Wireshark libs" and "Building the binary module" below.
You can run node pcap_example.js
to see the native module in action.
libushark
folder contains the usark C API and can be used to build native programs (see libushark/pcap_example.c
).bindings
folder via the node-addon-api.pcap_example.js
shows how to use the ushark API from a Nodejs script.Ushark depends on some Wireshark static libraries. The exposed functions are not part of an official API, so they may change in future Wireshark releases.
First of all, set up the environment as described here.
On Ubuntu 22.04, you will need at least the following packages:
apt install build-essential cmake flex libglib2.0-dev libgnutls28-dev libgcrypt20-dev\
libpcre2-dev zlib1g-dev libbrotli-dev libzstd-dev libgpg-error-dev liblz4-dev\
libnghttp2-dev libc-ares-dev libsnappy-dev libpcap-dev
On macOS, you can run tools/macos-setup.sh
to install all the dependencies.
To build the static libraries, run:
# The wireshark source should be cloned at ../wireshark
cd ..
git clone https://github.com/wireshark/wireshark
cd wireshark
git checkout 85a9e05c
mkdir build
cd build
cmake -DENABLE_STATIC=ON -DBUILD_wireshark=OFF -DENABLE_LUA=OFF -DENABLE_CAP=OFF -DENABLE_KERBEROS=OFF\
-DENABLE_SBC=OFF -DENABLE_SPANDSP=OFF -DENABLE_BCG729=OFF -DENABLE_ILBC=OFF\
-DENABLE_LIBXML2=OFF -DENABLE_OPUS=OFF -DENABLE_SINSP=OFF -DENABLE_NETLINK=OFF\
-DENABLE_PLUGINS=OFF -DENABLE_AIRPCAP=OFF -DENABLE_SMI=OFF ..
make -j$(nproc) tshark
The built Wireshark static libraries will be located in build/run
.
After building the wireshark static libraries, the binary node module can be built with:
npm install --build-from-source
(optional) To build the tar.gz
containing the binary module for the release, run:
make package
FAQs
Wireshark dissection for Nodejs
We found that @altalabs/ushark 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
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.