Registry / testing / gpzu-schema

gpzu-schema

JSON →
library1.0.20jsnpmunverified

gpzu-schema is a UMD JavaScript library (v1.0.20) for schema validation and data processing. It ships with TypeScript type definitions, enabling type-safe usage in TypeScript projects. The library is designed for environments that support UMD modules, including browsers and Node.js. Key differentiators: lightweight, zero dependencies, and straightforward API. The release cadence appears to be ad-hoc based on the single version available.

npm install gpzu-schema
INSTALL
IMPORT
SIG · GPZU-SCHEMA
G
gpzu-schema
testingjavascriptv1.0.20
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

GpzuSchema
✓ import { GpzuSchema } from 'gpzu-schema'
✗ const GpzuSchema = require('gpzu-schema')
Library ships TypeScript types; use named import for ESM. CommonJS require may fail in some bundlers.
validate
✓ import { validate } from 'gpzu-schema'
✗ import validate from 'gpzu-schema'
Default export is not available; must use named import.
Schema
✓ import type { Schema } from 'gpzu-schema'
TypeScript type import for type definitions.

Create a schema instance and validate a string value, handling success and error cases.

import { GpzuSchema, validate } from 'gpzu-schema'; const schema = new GpzuSchema({ type: 'string', minLength: 1 }); const result = validate(schema, 'hello world'); if (result.valid) { console.log('Valid:', result.value); } else { console.error('Invalid:', result.errors); }
Debug
Known issues
gotchaLibrary is in early release (v1.0.x). API may change without major version bump.
fix
Lock to specific version if stability required.
affects: >=1.0.0
gotchaNo README or documentation available. Functionality must be inferred from source or TypeScript types.
fix
Consult TypeScript declarations or examine source code directly.
affects: >=1.0.0
Errors
Common errors & fixes
TypeError: gpzu_schema_1.GpzuSchema is not a constructor
Importing incorrectly, likely using default import instead of named import.
fix
Use import { GpzuSchema } from 'gpzu-schema'
Cannot find module 'gpzu-schema'
Package not installed or not present in node_modules.
fix
Run npm install gpzu-schema
Upgrade
Version history
1.0.20latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
12 hits · last 30 days
node
12
Resources
gpzu-schema — npm install gpzu-schema · libregistry