Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/75lb/typical
Isomorphic, functional type-checking for Javascript
https://github.com/75lb/typical
functional-programming isomorphic javascript javascript-library load-anywhere nodejs type-checking types
Last synced: 1 day ago
JSON representation
Isomorphic, functional type-checking for Javascript
- Host: GitHub
- URL: https://github.com/75lb/typical
- Owner: 75lb
- License: mit
- Created: 2014-06-08T13:26:03.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-09-16T23:50:13.000Z (3 months ago)
- Last Synced: 2024-10-12T08:10:52.839Z (3 months ago)
- Topics: functional-programming, isomorphic, javascript, javascript-library, load-anywhere, nodejs, type-checking, types
- Language: JavaScript
- Homepage:
- Size: 275 KB
- Stars: 21
- Watchers: 2
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.hbs
- License: LICENSE
Awesome Lists containing this project
README
[![view on npm](https://badgen.net/npm/v/typical)](https://www.npmjs.org/package/typical)
[![npm module downloads](https://badgen.net/npm/dt/typical)](https://www.npmjs.org/package/typical)
[![Gihub repo dependents](https://badgen.net/github/dependents-repo/75lb/typical)](https://github.com/75lb/typical/network/dependents?dependent_type=REPOSITORY)
[![Gihub package dependents](https://badgen.net/github/dependents-pkg/75lb/typical)](https://github.com/75lb/typical/network/dependents?dependent_type=PACKAGE)
[![Node.js CI](https://github.com/75lb/typical/actions/workflows/node.js.yml/badge.svg)](https://github.com/75lb/typical/actions/workflows/node.js.yml)
[![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg)](https://github.com/feross/standard){{>main}}
## Load anywhere
This library is compatible with Node.js, the Web and any style of module loader. It can be loaded anywhere, natively without transpilation.
Within a Node.js ECMAScript Module:
```js
import t from 'typical'
import { isNumber } from 'typical'
```CommonJS:
```js
const t = require('typical')
const { isNumber } = require('typical')
```Within a modern browser ECMAScript Module:
```js
import t from './node_modules/typical/index.js'
```* * *
© 2014-25 Lloyd Brookes \.
Test suite by [test-runner](https://github.com/test-runner-js/test-runner). Documented by [jsdoc-to-markdown](https://github.com/jsdoc2md/jsdoc-to-markdown).