MCPcopy Index your code
hub / github.com/srcbookdev/srcbook / usePackageJson

Function usePackageJson

packages/web/src/components/use-package-json.tsx:129–137  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

127}
128
129export function usePackageJson() {
130 const context = useContext(PackageJsonContext);
131
132 if (!context) {
133 throw new Error('usePackageJson must be used within a PackageJsonProvider');
134 }
135
136 return context;
137}

Callers 2

PackageJsonFunction · 0.90
SessionFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected