typeguru
Version:
TypeGuru is a lightweight TypeScript utility library for type checking. It includes utility functions for checking object literals, plain objects, specific types, and more.
44 lines (29 loc) • 1.32 kB
Markdown
Important: This project is still in development and not ready for production use.
This is a collection of utility functions for TypeScript projects, designed to help you write clean, efficient, and maintainable code.
This project is built with the following technologies:
- TypeScript: a typed superset of JavaScript that compiles to plain JavaScript
- Jest: a testing framework for JavaScript and TypeScript projects
- Yarn: a fast, reliable, and secure dependency manager for Node.js
To install this project, run the following command:
```bash
yarn add @nilsvennemann/typeguru
```
To use this project, import the functions you need:
```typescript
import { isObjectLiteral, isPlainObject } from '@nilsvennemann/typeguru'
const isObject = isObjectLiteral({}) // true
const isPlain = isPlainObject({}) // true
```
To contribute to this project, follow these steps:
1. Fork this repository.
2. Create a branch: `git checkout -b <branch_name>`.
3. Make your changes and commit them: `git commit -m '<commit_message>'`
4. Push to the original branch: `git push origin <project_name>/<location>`
5. Create the pull request.
6. Wait for the pull request to be reviewed and merged.
7. Celebrate! :tada: