DEPRECATION NOTICE
NehonixURIProcessor will be deprecated in December 2025.
StruLink is the official successor. It is a simplified, refocused version featuring:
- Pure URL/URI and String encoding, decoding, and validation utilities.
- A minimal footprint (only 1 runtime dependency).
- Note: AI/ML features, Python microservices, and framework integrations have been removed.
Migration Plan: If your project relies on Express/React integrations or machine learning features, continue using nehonix/nehonixUriProcessor until December 2025. For pure utility usage, migrate to StruLink.
StruLink is a focused TypeScript library for URL/URI and string encoding, decoding, validation, and parsing. It is designed for developers who require high-performance URL manipulation utilities without the overhead of framework dependencies.
Recommended for TypeScript projects:
xfpm install strulinkAlternative methods:
npm install strulink
# or
bun add strulink
# or
yarn add strulinkimport { StruLink as __strl__ } from "strulink";
// Validate and decode URL
const result = await __strl__.asyncCheckUrl(
"https://example.com?data=SGVsbG8=",
);
console.log(result.isValid); // true
// Auto-detect and decode
const decoded = __strl__.autoDetectAndDecode(
"https://example.com?data=SGVsbG8gV29ybGQ=",
);
console.log(decoded); // https://example.com?data=Hello World
// Detect malicious patterns
const analysis = __strl__.detectMaliciousPatterns(
"https://example.com?user=admin' OR '1'='1",
);
console.log(analysis.isMalicious); // true- URL Validation: Validate URIs against customizable rules.
- Auto-Detection & Decoding: Decode complex URI parameter encodings automatically.
- Multiple Encodings Supported: Base64, percent encoding, hex, punycode, JWT, and more.
- Security Analysis: Detect SQL injection, XSS, and path traversal patterns.
- Internationalized URIs: Complete punycode support.
- Lightweight Architecture: Single runtime dependency.
- Zero Configuration: Ready for use without additional setup.
percentEncoding • base64 • hex • unicode • htmlEntity • punycode • asciihex • asciioct • rot13 • base32 • urlSafeBase64 • jsEscape • cssEscape • utf7 • quotedPrintable • jwt • and more
Complete Documentation - Main index for comprehensive API references and developer guides.
- Core API Reference - Detailed method documentation for the
StruLinkclass - Safety Layer - Context-aware encoding instructions
- Security Patterns - Threat intelligence and detection mechanisms
- General Utilities - Independent utility functions
- Changelog - Version history and updates
// Validation
__strl__.checkUrl(url, options);
__strl__.asyncCheckUrl(url, options);
__strl__.isValidUri(url, options);
// Encoding and Decoding
__strl__.encode(input, encodingType);
__strl__.decode(input, encodingType);
__strl__.autoDetectAndDecode(input);
__strl__.detectEncoding(input);
// Security Analysis
__strl__.detectMaliciousPatterns(input, options);
__strl__.scanUrl(url);
__strl__.sanitizeInput(input);
// General Analysis
__strl__.analyzeURL(url);
__strl__.needsDeepScan(input);Contributions to the project are welcome. Please refer to our Contributing Guide prior to submitting pull requests.
MIT Copyright (c) Nehonix Team