@withpanache/core
v0.17.1
Published
Framework-agnostic primitives shared by @withpanache/nextjs and @withpanache/cli: lockfile detection, deps manifest parsing, git context detection, CSP parsing/injection, and ingest API helpers.
Maintainers
Readme
@withpanache/core
Framework-agnostic primitives shared by @withpanache/nextjs and @withpanache/cli.
Zero runtime dependencies. Node 18+.
You usually don't install this directly — install the plugin or CLI that wraps it. Use this package if you're building your own integration.
Modules
import { generateManifest, detectPackageManager } from "@withpanache/core/manifest"
import { detectGitContext } from "@withpanache/core/git"
import { pushPayload, pushPayloadDetached } from "@withpanache/core/push"
import { parseCsp, serializeCsp, injectReporting, validateCsp, buildCspReportUrl } from "@withpanache/core/csp"
import { DEFAULT_API_URL, resolveIngestUrl } from "@withpanache/core/ingest"Or via the barrel: import { ... } from "@withpanache/core". Sub-paths are preferred for tree-shaking.
License
MIT
