@typed/math v6.4.0
Typed
Reliable, Standards-oriented software for browsers & Node. Designed for TypeScript and progressive web applications.
Typed is a TypeScript toolkit composed of many à-la-carte single purposed libraries to help build applications that work in both browsers & Node. All Typed libraries have no non-Typed dependencies, are side-effect free, and provides a tree-shakable API around functions. While many of these libraries individually should support many different use-cases, the general purpose of the whole is to streamline progressive web app development.
Only modern environments are supported out of the box. The last 2 major versions of Chrome, Firefox, Safari, and Edge are supported, as well as the lastest stable and long-term-support releases for Node.
Packages
All Typed Packages have no non-typed dependencies, with the exception of @typed/dom
having a node-only peer dependency.
Package | Dependencies | DevDependencies | PeerDependencies | Minified | Gzipped |
---|---|---|---|---|---|
AsyncIterable | |||||
Disposable | |||||
DOM | |||||
Either | |||||
Env | |||||
History | |||||
Hooks | |||||
HTTP | |||||
Iterable | |||||
Lambda | |||||
List | |||||
Logger | |||||
Logic | |||||
Map | |||||
Math | |||||
Maybe | |||||
NewType | |||||
Objects | |||||
Promises | |||||
RemoteData | |||||
Routing | |||||
Set | |||||
Storage | |||||
Strings | |||||
Subscription | |||||
Timer | |||||
Tuple | |||||
UUID |
Helpful information
Typed is designed to work in modern browsers and Node. This means that there are some code paths that are not used in one or the other. This is more important when making bundles for the browser as every byte parsed is impacting your time to load. To get around this you can use a plugin for your particular bundler to replace some of the conditionals used with true/false
values to ensure unused code paths are removed.
Value to replace | Browser | Node | Packages |
---|---|---|---|
typeof window !== 'undefined' && typeof document !== 'undefined' | true | false | dom , env , history , http , timer |
typeof crypto !== 'undefined' | true | false | uuid |
typeof process !== 'undefined' | false | true | dom |
Here's some examples of a replace plugin
Bundler | Replace Plugin |
---|---|
Rollup | https://github.com/rollup/rollup-plugin-replace |
Webpack | https://www.npmjs.com/package/webpack-plugin-replace |
License
These set of packages are released freely for all OSS under the Parity Public License 6.0.0
. Feel free to visit License Zero for info on how you or your company can obtain a license to distribute this software in close-sourced software.
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago