sindresorhus / math-clamp
Clamp a number
☆14Updated 11 months ago
Alternatives and similar repositories for math-clamp:
Users that are interested in math-clamp are comparing it to the libraries listed below
- Include only certain items in an array☆16Updated 3 years ago
- Check if a number is a redirect HTTP status code☆23Updated 3 years ago
- Exclude certain items from an array☆20Updated 3 years ago
- Lax `url.format()` that formats a hostname and port into IPv6-compatible socket form of `hostname:port`☆13Updated 3 years ago
- Format a date with timezone☆10Updated 8 years ago
- Expand POSIX bracket expressions (character classes) in glob patterns.☆27Updated 3 years ago
- Get the system default UID☆11Updated last year
- Strip shebang (eg. #!/bin/sh) from a string☆11Updated 3 years ago
- Left pad each line in a string☆19Updated last year
- Node.js 0.12 util.debuglog() ponyfill☆19Updated last year
- ES2015 Number.isFinite() ponyfill☆19Updated 3 years ago
- Convert a Source Map object to a comment☆15Updated 3 years ago
- Simple `setImmediate` shim☆28Updated 10 months ago
- ES2015 Number.isSafeInteger() ponyfill☆18Updated 3 years ago
- Get the repository name from the git remote origin URL☆23Updated last year
- Check if a JavaScript environment has a DOM☆19Updated 3 years ago
- ES2015 `String#codePointAt()` ponyfill☆22Updated 3 years ago
- Check if a value is a function☆27Updated 3 years ago
- Find mapcodes in a string☆24Updated 2 years ago
- Get the name of a named function☆33Updated 3 years ago
- Get an array of parent directories including itself☆27Updated last year
- Check if a string is a scoped npm package name☆24Updated 2 years ago
- Strip UTF-8 byte order mark (BOM) from a buffer☆19Updated last year
- Get the maximum permitted length of a path of a Unix domain socket☆13Updated 3 years ago
- Check if a value is an error constructor☆13Updated 3 years ago
- Node's default require extensions as a separate module☆9Updated 2 years ago
- Split a string at one or more indices☆23Updated 3 years ago
- A ponyfill for Buffer.fill