@mizchi/npm-summary@0.1.3
latest
It is unknown whether this package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers




JSR Score
76%
Published
5 months ago (0.1.3)
f
convertToDefinitionPath
Convert JavaScript file path to corresponding TypeScript definition file path
f
extractTypeInfo
Extract type information summary from a definition file
f
findDtsFile
Function to find type definition file Tries multiple possible paths
f
formatImportPath
Convert import path to simple format
f
generateSummary
Generate summary using Gemini API
f
getEntrypoints
Extract entry points from package.json
f
getPackageFiles
Get TypeScript type definition files from npm package
T
GetPackageFilesOptions
npm package file retrieval options
f
listPackageFiles
Get file list from tarball
f
normalizePath
Normalize path (remove ./ prefix)
T
Package
npm package type definition
f
readPackageFile
Get specific file from tarball