sindresorhus / trim-right
Similar to String#trim() but removes only whitespace on the right
☆21Updated 3 years ago
Related projects ⓘ
Alternatives and complementary repositories for trim-right
- Check if a number is a redirect HTTP status code☆23Updated 3 years ago
- ES2015 Number.isFinite() ponyfill☆19Updated 3 years ago
- Returns true if a string has an extglob☆22Updated 5 years ago
- ES2015 Number.isNaN() ponyfill☆28Updated 6 months ago
- Modify the filename in a path☆16Updated 2 years ago
- A cache for managing namespaced sub-caches☆14Updated 3 years ago
- Convert a Source Map object to a comment☆15Updated 3 years ago
- Create an array by repeating the given string n times.☆19Updated 3 years ago
- Faster, bash-like range expansion. Expand a range of numbers or letters, uppercase or lowercase. See the benchmarks.☆25Updated 5 years ago
- Repeat a string - fast☆34Updated 3 years ago
- Answers the question: "can this value have keys?". Returns true if a value is any of the object types: array, regexp, plain object, funct…☆19Updated 3 years ago
- ES2015 `String#codePointAt()` ponyfill☆22Updated 3 years ago
- Iterate over the own enumerable properties of an object, and return an object with properties that evaluate to true from the callback. Ex…☆23Updated 7 years ago
- Make a glob pattern absolute, ensuring that negative globs and patterns with trailing slashes are correctly handled.☆18Updated 2 years ago
- Moved to https://github.com/nodejs/string_decoder☆23Updated 7 years ago
- Expand POSIX bracket expressions (character classes) in glob patterns.☆27Updated 3 years ago
- Strip shebang (eg. #!/bin/sh) from a string☆11Updated 3 years ago
- Returns true if a value has the characteristics of a valid JavaScript descriptor. Works for data descriptors and accessor descriptors.☆12Updated last year
- Map `visit` over an array of objects.☆17Updated 2 years ago
- Simple `setImmediate` shim☆28Updated 8 months ago
- Check if a path is in the current working directory☆21Updated 3 years ago
- Returns an object with the base path and the actual pattern from a glob.☆17Updated 7 years ago
- Lax `url.format()` that formats a hostname and port into IPv6-compatible socket form of `hostname:port`☆13Updated 3 years ago
- Check if an object can be used like an Array☆16Updated 3 years ago
- Returns true if a value has the characteristics of a valid JavaScript accessor descriptor.☆15Updated last year
- Create an object path (dot notation) from a list or array of strings.☆16Updated 3 years ago
- Return true if the file is (or the file path has) a dotfile.☆13Updated 7 years ago
- Get the command from a shebang☆22Updated 3 years ago