MCPcopy Index your code
hub / github.com/simstudioai/sim / getPlanByName

Function getPlanByName

apps/sim/lib/billing/plans.ts:97–99  ·  view source on GitHub ↗
(planName: string)

Source from the content-addressed store, hash-verified

95 * Get a specific plan by name
96 */
97export function getPlanByName(planName: string): BillingPlan | undefined {
98 return getPlans().find((plan) => plan.name === planName)
99}
100
101/**
102 * Get a specific plan by Stripe price ID.

Callers 4

mapToTeamPlanNameFunction · 0.90
route.tsFile · 0.90
getPlanLimitsFunction · 0.85

Calls 1

getPlansFunction · 0.85

Tested by

no test coverage detected