Skip to main content
Glama
reuvenaor

Shadcn Registry manager

by reuvenaor
get-package-info.ts351 B
import path from "path" import fs from "fs-extra" import { type PackageJson } from "type-fest" export function getPackageInfo( cwd: string = "", shouldThrow: boolean = true ): PackageJson | null { const packageJsonPath = path.join(cwd, "package.json") return fs.readJSONSync(packageJsonPath, { throws: shouldThrow, }) as PackageJson }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/reuvenaor/shadcn-registry-manager'

If you have feedback or need assistance with the MCP directory API, please join our Discord server