https://github.com/yurkimus/types
JavaScript-oriented type utilities
https://github.com/yurkimus/types
deno functional-programming javascript node utilities
Last synced: about 1 month ago
JSON representation
JavaScript-oriented type utilities
- Host: GitHub
- URL: https://github.com/yurkimus/types
- Owner: yurkimus
- License: mit
- Created: 2024-07-27T15:36:06.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-29T13:26:57.000Z (about 1 year ago)
- Last Synced: 2025-04-25T00:36:52.115Z (11 months ago)
- Topics: deno, functional-programming, javascript, node, utilities
- Language: JavaScript
- Homepage:
- Size: 32.2 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Types
JavaScript-first utilities to work with it's built-in types.
## Table of Contents
- [Installation](#installation)
- [Exports](#exports)
- [type](#type)
- [is](#is)
- [License](#license)
## Installation
### npm
```
npm install @yurkimus/types
```
### urls
```
"@yurkimus/types": "npm:@yurkimus/types"
```
```
"@yurkimus/types": "github:yurkimus/types"
```
```
"@yurkimus/types": "https://raw.githubusercontent.com/yurkimus/types/main/source/index.js"
```
## Exports
### type
#### Definition:
```
type :: * -> string
```
#### Example:
```javascript
type({}) // => 'Object'
```
### is
#### Definition:
```
is :: string -> * -> boolean
```
#### Example:
```javascript
/**
* Standard
*/
is('Object', {}) // => true
/**
* Curried
*/
is('Array')([]) // => true
```
## License
[MIT](LICENSE)