@helpers4/number
v3.1.12
Published
A set of helpers in TS/JS, compatible with tree-shaking, for number.
Maintainers
Readme
@helpers4
The @helpers4 are a collection of helper functions for use in any project, whatever the framework.
Every helper is a standalone module and supports tree-shaking, so you can use only the helpers you need without embedding the whole library.
@helpers4/number
A set of helpers for working with URLs.
Documentation
https://helpers4.dev/typescript/categories/number/
- clamp
- correctFloat
- extractNumber
- formatCompact
- formatSize
- inRange
- isEven
- isNegative
- isOdd
- isPositive
- lerp
- random
- roundTo
See
- animation
- array
- binary
- browser
- ci
- color
- commit
- date
- fetch
- font
- function
- geography
- geometry
- guard
- id
- json
- license
- map
- markdown
- node
- object
- observable
- package
- promise
- set
- string
- structure
- type
- url
- version
All Available Packages
| Name | Package | Source Code | Description | |------|---------|-------------|-------------| | animation | @helpers4/animation | Source | Timing and interpolation for animations | | array | @helpers4/array | Source | Array manipulation utilities | | binary | @helpers4/binary | Source | Read, write and identify binary formats | | browser | @helpers4/browser | Source | Browser-specific utilities | | ci | @helpers4/ci | Source | CI/CD workflow status utilities | | color | @helpers4/color | Source | Color conversion and validation utilities | | commit | @helpers4/commit | Source | Conventional Commits parsing and analysis | | date | @helpers4/date | Source | Date and time utility functions | | fetch | @helpers4/fetch | Source | fetch wrappers: status errors, JSON bodies, retries | | font | @helpers4/font | Source | Font selection helpers | | function | @helpers4/function | Source | Function utilities and type guards | | geography | @helpers4/geography | Source | Geographic coordinates helpers | | geometry | @helpers4/geometry | Source | 2D points, rectangles and affine matrices | | guard | @helpers4/guard | Source | Runtime type guard utilities | | id | @helpers4/id | Source | Unique identifier generation utilities | | json | @helpers4/json | Source | JSON parsing and serialization, with its common variants | | license | @helpers4/license | Source | License string classification and comparison | | map | @helpers4/map | Source | Native Map manipulation utilities | | markdown | @helpers4/markdown | Source | Markdown formatting and escaping utilities | | node | @helpers4/node | Source | Node.js-specific utilities | | number | @helpers4/number | Source | Number utility functions and validation | | object | @helpers4/object | Source | Object manipulation utilities | | observable | @helpers4/observable | Source | Observable utilities and combinators | | package | @helpers4/package | Source | Package metadata parsers | | promise | @helpers4/promise | Source | Promise utilities and error handling | | set | @helpers4/set | Source | Native Set manipulation utilities | | string | @helpers4/string | Source | String manipulation and formatting utilities | | structure | @helpers4/structure | Source | Generic, domain-agnostic data structures | | type | @helpers4/type | Source | Compile-time TypeScript utility types | | url | @helpers4/url | Source | URL parsing and manipulation utilities | | version | @helpers4/version | Source | Version string manipulation utilities |
