0.3.12 • Published 11 months ago

@leewinter/type-check v0.3.12

Weekly downloads
-
License
MIT
Repository
-
Last release
11 months ago

type-check

NPM

License: MIT Version GitHub last commit GitHub pull requests

A lightweight and flexible JavaScript/TypeScript library for validating data structures with support for multiple data types, including strings, numbers, objects, arrays, functions, and symbols. This library provides a unified and extensible API for both runtime and compile-time validation.


Features

  • Supports Multiple Types: Validate strings, numbers, objects, arrays, functions, symbols, dates, and more.
  • Type Safety: Full TypeScript support for type-safe validation.
  • Custom Rules: Easily add custom validation rules.
  • Unified Interface: A single API for both JavaScript and TypeScript usage.
  • Runtime Checks: Ensure values conform to expected types during execution.
  • Comprehensive Feedback: Provides detailed validation messages and statuses.

Visit the docs

Contributing

Contributions are welcome! Please follow these steps:

  1. Fork the repository.
  2. Create a feature branch.
  3. Commit your changes.
  4. Submit a pull request.

License

This library is licensed under the MIT License.


Support

For any questions or issues, feel free to open an issue on GitHub.