Implements a new command in the Raycast extension to fetch and display npm package information.
Updates package.json: Modifies the command array to include a new command named "fetch-npm-package-info" with a title "Fetch NPM Package Info" and a description "Fetch information about an npm package". This aligns with the intent to add functionality for fetching npm package info.
Enhances src/index.tsx: Replaces the existing content with a new implementation that utilizes useFetch to call the npm registry API and fetch package details. It displays the package's name, latest version, description, and author in the Detail component. Additionally, it includes error handling for API call failures and a loading state.
Modifies README.md: Adds a section describing the new "Fetch NPM Package Info Command", detailing its functionality and usage.
Related to #1
Implements a new command in the Raycast extension to fetch and display npm package information.
package.json
: Modifies the command array to include a new command named "fetch-npm-package-info" with a title "Fetch NPM Package Info" and a description "Fetch information about an npm package". This aligns with the intent to add functionality for fetching npm package info.src/index.tsx
: Replaces the existing content with a new implementation that utilizesuseFetch
to call the npm registry API and fetch package details. It displays the package's name, latest version, description, and author in theDetail
component. Additionally, it includes error handling for API call failures and a loading state.For more details, open the Copilot Workspace session.