Unjs
Unjs is a utility for quickly generating boilerplate code snippets, streamlining development and saving developers time on repetitive tasks.
Install on your platform
We auto-selected Claude Code based on this skill’s supported platforms.
Run in terminal (recommended)
claude mcp add unjs npx -- -y @trustedskills/unjs
Or manually add to ~/.claude/settings.json
{
"mcpServers": {
"unjs": {
"command": "npx",
"args": [
"-y",
"@trustedskills/unjs"
]
}
}
}Requires Claude Code (claude CLI). Run claude --version to verify your install.
About This Skill
What it does
This skill, unjs, provides access to a collection of JavaScript utility functions. It can be used to perform common tasks like string manipulation, array processing, and object handling within an AI agent's workflow. The specific functionality is derived from the unjs library, offering concise and reusable code snippets for various programming needs.
When to use it
- Data Transformation: When needing to clean or reshape data received from external sources before further analysis or action.
- String Parsing: When an AI agent requires extracting specific information from text-based inputs like emails or web pages.
- Array Manipulation: To efficiently filter, sort, or modify lists of items retrieved from APIs or databases.
- Object Handling: When needing to access and modify properties within complex data structures.
Key capabilities
- String manipulation functions (e.g., trimming, splitting)
- Array processing methods (e.g., filtering, mapping)
- Object utility functions (e.g., deep cloning, merging)
- Provides a comprehensive set of JavaScript utilities from the unjs library
Example prompts
- "Use
unjsto extract all email addresses from this text: [text]" - "Can you filter this array using
unjs: [array]?" - “Using
unjs, merge these two objects: [object1], [object2].”
Tips & gotchas
The specific functions available depend on the version of unjs being used. Refer to the unjs documentation for a complete list of capabilities and potential limitations.
Tags
TrustedSkills Verification
Unlike other registries that point to live repositories, TrustedSkills pins every skill to a verified commit hash. This protects you from malicious updates — what you install today is exactly what was reviewed and verified.
Security Audits
| Gen Agent Trust Hub | Pass |
| Socket | Pass |
| Snyk | Pass |
🌐 Community
Passed automated security scans.