1.0.0 • Published 1 year ago

lonter v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Lonter

Lonter is a simple data validation library for JavaScript, allowing developers to easily validate various data types.

Installation

You can install Lonter via npm:

npm install lonter

Usage

To use Lonter in your JavaScript project, import it as follows:

const Lonter = require('lonter');

// Example usage
console.log(Lonter.isString('Hello')); // true
console.log(Lonter.isNumber(42)); // true

Available Validation Methods

  • isString(value): Checks if the value is a string.
  • isNumber(value): Checks if the value is a number.
  • isInteger(value): Checks if the value is an integer.
  • isFloat(value): Checks if the value is a floating-point number.
  • isBoolean(value): Checks if the value is a boolean.
  • isObject(value): Checks if the value is an object.
  • isArray(value): Checks if the value is an array.
  • isFunction(value): Checks if the value is a function.
  • isDate(value): Checks if the value is a valid Date object.

Contributing

Contributions are welcome! If you find any issues or have suggestions for improvement, please open an issue or submit a pull request on GitHub.

License

This project is licensed under the MIT License - see the LICENSE file for details.

1.0.0

1 year ago