https://github.com/hyperjump-io/json-schema-formats
A collection of validation functions for the JSON Schema `format` keyword.
https://github.com/hyperjump-io/json-schema-formats
Last synced: 5 months ago
JSON representation
A collection of validation functions for the JSON Schema `format` keyword.
- Host: GitHub
- URL: https://github.com/hyperjump-io/json-schema-formats
- Owner: hyperjump-io
- License: mit
- Created: 2025-11-01T03:01:09.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2025-11-10T17:00:14.000Z (7 months ago)
- Last Synced: 2025-11-23T07:23:00.740Z (7 months ago)
- Language: JavaScript
- Homepage: http://json-schema-formats.hyperjump.io/
- Size: 256 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# Hyperjump - JSON Schema Formats
A collection of validation functions for the JSON Schema `format` keyword.
## Install
This module is designed for Node.js (ES Modules, TypeScript) and browsers. It
should work in Bun and Deno as well, but the test runner doesn't work in these
environments, so this module may be less stable in those environments.
### Node.js
```bash
npm install @hyperjump/json-schema-formats
```
### TypeScript
This package uses the package.json "exports" field. [TypeScript understands
"exports"](https://devblogs.microsoft.com/typescript/announcing-typescript-4-5-beta/#packagejson-exports-imports-and-self-referencing),
but you need to change a couple settings in your `tsconfig.json` for it to work.
```jsonc
"module": "Node16", // or "NodeNext"
"moduleResolution": "Node16", // or "NodeNext"
```
## API
## Contributing
Contributions are welcome! Please create an issue to propose and discuss any
changes you'd like to make before implementing it. If it's an obvious bug with
an obvious solution or something simple like a fixing a typo, creating an issue
isn't required. You can just send a PR without creating an issue. Before
submitting any code, please remember to first run the following tests.
- `npm test` (Tests can also be run continuously using `npm test -- --watch`)
- `npm run lint`
- `npm run type-check`