is-one-thousand-nine-hundred-and-ninety-nine v0.1.2
is-one-thousand-nine-hundred-and-ninety-nine
Description
This package provides a simple function to check if a given number is equal to 1999. It is intended for educational purposes only and is not meant to be used in serious or production applications. The primary goal is to demonstrate how to create, test, and publish a TypeScript package using Deno and npm.
Don't miss to star the repository if you like it!
Installation
You can install the package using npm:
npm install is-one-thousand-nine-hundred-and-ninety-nine
Or using pnpm:
pnpm add is-one-thousand-nine-hundred-and-ninety-nine
Or using Deno (hardly recommended):
deno add jsr:@horebz/is-one-thousand-nine-hundred-and-ninety-nine
import { isOneThousandNineHundredAndNinetyNine } from "is-one-thousand-nine-hundred-and-ninety-nine";
Usage
Here's how you can use the function in your project:
import { isOneThousandNineHundredAndNinetyNine } from "is-one-thousand-nine-hundred-and-ninety-nine";
console.log(isOneThousandNineHundredAndNinetyNine(1999)); // true
console.log(isOneThousandNineHundredAndNinetyNine(2000)); // false
console.log(isOneThousandNineHundredAndNinetyNine("1999")); // false
Tests
To run the tests, use the following command:
deno test
Contributing
This package is not intended for serious use, but contributions are welcome. Feel free to fork the repository and submit pull requests.
License
This project is licensed under the MIT License. See the LICENSE file for details.
Disclaimer
This package is for educational purposes only. It is not intended for use in production or serious applications. Use at your own risk.