
Research
Namastex.ai npm Packages Hit with TeamPCP-Style CanisterWorm Malware
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.
@xylabs/eth-address
Advanced tools
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
Using npm:
npm install {{name}}
Using yarn:
yarn add {{name}}
Using pnpm:
pnpm add {{name}}
Using bun:
bun add {{name}}
See the LICENSE file for license rights and limitations (LGPL-3.0-only).
### .temp-typedoc
### classes
### <a id="EthAddressWrapper"></a>EthAddressWrapper
Wrapper around an Ethereum address providing parsing, formatting, validation, and checksum support.
protected new EthAddressWrapper(address): EthAddressWrapper;
bigint
EthAddressWrapper
static fromString(value?, base?): EthAddressWrapper | undefined;
string
number = 16
EthAddressWrapper | undefined
static parse(value, base?): EthAddressWrapper | undefined;
unknown
number
EthAddressWrapper | undefined
static validate(address): boolean;
string
boolean
equals(address?): boolean;
string | EthAddressWrapper | null
boolean
toBigNumber(): bigint;
bigint
toHex(): string;
string
toJSON(): string;
string
toLowerCaseString(): string;
string
toShortString(length?): string;
number = 2
string
toString(checksum?, chainId?): string;
boolean
string
string
validate(): boolean;
boolean
### functions
### <a id="ellipsize"></a>ellipsize
function ellipsize(value, length?): string;
Truncates a string to show the first and last length characters separated by an ellipsis.
string
The string to ellipsize
number = 2
Number of characters to keep at each end (default 2)
string
The ellipsized string
### <a id="isEthAddressWrapper"></a>isEthAddressWrapper
function isEthAddressWrapper(obj): obj is { type: string } & EthAddressWrapper;
Type guard that checks if the given object is an instance of EthAddressWrapper.
string
obj is { type: string } & EthAddressWrapper
### <a id="padHex"></a>padHex
function padHex(hex, byteCount?): string;
string
number = 0
string
FAQs
Base functionality used throughout XY Labs TypeScript/JavaScript libraries
The npm package @xylabs/eth-address receives a total of 1,315 weekly downloads. As such, @xylabs/eth-address popularity was classified as popular.
We found that @xylabs/eth-address demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 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.

Research
Malicious Namastex.ai npm packages appear to replicate TeamPCP-style Canister Worm tradecraft, including exfiltration and self-propagation.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.