Extracts and documents public API surfaces from NPM packages using TypeScript Compiler API (ts.createProgram) and API Extractor from @microsoft/api-extractor. Generates .api.md report files and .d.ts rollups.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Npm Package Api Surface Extractor?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/agentskillexchange-npm-package-api-surface-extractor)
---
name: "NPM Package API Surface Extractor"
slug: "npm-package-api-surface-extractor"
description: "Extracts and documents public API surfaces from NPM packages using TypeScript Compiler API (ts.createProgram) and API Extractor from @microsoft/api-extractor. Generates .api.md report files and .d.ts rollups."
verification: "security_reviewed"
source: "https://api-extractor.com/"
author: "Microsoft"
category: "Library & API Reference"
framework: "Claude Code"
---
# NPM Package API Surface Extractor
Extracts and documents public API surfaces from NPM packages using TypeScript Compiler API (ts.createProgram) and API Extractor from @microsoft/api-extractor. Generates .api.md report files and .d.ts rollups.
## Prerequisites
Node.js, TypeScript
## Installation
Requirements and caveats from upstream:
- Missing exports: Suppose the awesome-widgets package exports an API function AwesomeButton.draw() that requires a parameter of type DrawStyle , but you forgot to export this enum. Things seem fine at first, but when a...
Basic usage or getting-started notes:
- API Extractor helps you build better TypeScript library packages. Suppose for example that your company has published an NPM package called “ awesome-widgets ” that exports many classes and interfaces. As developers s...
- Source: https://api-extractor.com/
## Documentation
- https://api-extractor.com/
## Source
- [Agent Skill Exchange](https://agentskillexchange.com/skills/npm-package-api-surface-extractor/)