Launch Week Day 1: Socket for Jira Is Now Available.Learn More
Socket
Book a DemoSign in
Socket

@rxbenefits/admin-portal-shared-constants

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rxbenefits/admin-portal-shared-constants

Shared constants for RxBenefits applications including routes, permissions, validation rules, and configuration values

latest
Source
npmnpm
Version
1.0.0
Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

@rxbenefits/shared-constants

Shared constants and configuration values for RxBenefits applications.

Installation

npm install @rxbenefits/shared-constants

Usage

import { 
  PageRoutes, 
  PermissionNames, 
  RegExPatterns,
  ValidationRules 
} from '@rxbenefits/shared-constants';

// Use route constants
const memberListRoute = PageRoutes.MEMBER_LIST;

// Use permission names
const canViewMembers = user.hasPermission(PermissionNames.MEMBER_VIEW);

// Use regex patterns
const emailIsValid = RegExPatterns.EMAIL.test(email);

// Use validation rules
const isValidZip = ValidationRules.zipCode(zipValue);

Included Constants

  • PageRoutes - Application route constants
  • PermissionNames - Role-based permission identifiers
  • RegExPatterns - Common regex patterns for validation
  • ValidationRules - Form validation functions
  • States - US state codes and labels
  • Gender - Gender type definitions
  • Relationship - Family relationship types
  • Config - Application configuration values

Development

# Build the package
npm run build

# Run in development mode with watch
npm run dev

# Run tests
npm run test

# Lint code
npm run lint

Publishing

This package is published to GitHub Packages:

npm publish

Keywords

rxbenefits

FAQs

Package last updated on 10 Dec 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts