es-fetch-api
CommunityChain HTTP requests with lightweight middlewares.
Authorlchrennew
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill reduces repetitive boilerplate when making HTTP requests in JavaScript/TypeScript by wrapping the native fetch API with a middleware-driven API.
Core Features & Use Cases
- Middleware-based request composition: query, json, form, header, and abortable middlewares to build requests in a readable, declarative style.
- Client for Node and browser: works in both environments through a base URL with getApi and endpoint chaining.
- Use Case: Initialize an API client with a base URL and perform GET with query params or POST with JSON bodies in a clean, maintainable way.
Quick Start
Install the library with npm install es-fetch-api, then initialize:
- const api = getApi('https://api.example.com');
- await api('/users', query({ page: 1 }));
- await api('/login', POST, json({ username, password }));
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: es-fetch-api Download link: https://github.com/lchrennew/es-fetch-api/archive/main.zip#es-fetch-api Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.