sindresorhus / trim-newlinesView external linksLinks
Trim newlines from the start and/or end of a string
☆49Mar 20, 2023Updated 2 years ago
Alternatives and similar repositories for trim-newlines
Users that are interested in trim-newlines are comparing it to the libraries listed below
Sorting:
- Similar to String#trim() but removes only whitespace on the right☆22Jul 9, 2021Updated 4 years ago
- ES2015 Number.isFinite() ponyfill☆20Apr 7, 2021Updated 4 years ago
- Check if a path is in the current working directory☆23May 3, 2021Updated 4 years ago
- Check if a path is the current working directory☆22May 10, 2025Updated 9 months ago
- ES2015 Number.isNaN() ponyfill☆29May 2, 2024Updated last year
- Repeat a string - fast☆35May 3, 2021Updated 4 years ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- Strip redundant indentation and indent the string☆55May 3, 2021Updated 4 years ago
- Gracefully restore the CLI cursor on exit☆41Jul 26, 2024Updated last year
- Check if a file path is a binary file☆49Apr 30, 2024Updated last year
- Lowercase the keys of an object☆41Feb 2, 2026Updated last week
- ES2015 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago
- A transform to make UglifyJS work in browserify☆21Feb 18, 2020Updated 5 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆37Jan 24, 2021Updated 5 years ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Jan 24, 2021Updated 5 years ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Feb 26, 2022Updated 3 years ago
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 9, 2025Updated 5 months ago
- Get the user home directory with fallback to the system temp directory☆30Apr 16, 2021Updated 4 years ago
- Simple `setImmediate` shim☆29Sep 13, 2025Updated 5 months ago
- Iterator abstraction as specified in ECMAScript6☆19Jun 30, 2021Updated 4 years ago
- Create an array by repeating the given string n times.☆19Apr 7, 2021Updated 4 years ago
- ☆19Dec 21, 2024Updated last year
- Check if an object can be used like an Array☆17Sep 13, 2025Updated 5 months ago
- ☆26Dec 7, 2017Updated 8 years ago
- ES2015 `Array#findIndex()` ponyfill☆33May 1, 2024Updated last year
- Check if a string matches the name of a Node.js builtin module☆63Feb 27, 2025Updated 11 months ago
- Modify the values of an object☆29Sep 10, 2021Updated 4 years ago
- Try to guess if your terminal supports unicode☆18Dec 16, 2020Updated 5 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…☆19Aug 20, 2021Updated 4 years ago
- Check if a given module ID is resolvable with require()☆16Nov 30, 2018Updated 7 years ago
- Check if a path is a file, directory, or symlink☆80Feb 2, 2026Updated last week
- Regular expression for matching a shebang line☆48Aug 13, 2021Updated 4 years ago
- Give me a string and I'll tell you if it's a valid npm package license string☆29Apr 14, 2021Updated 4 years ago
- Moved to https://github.com/nodejs/string_decoder☆23Jun 21, 2017Updated 8 years ago
- The map of HTTP status codes from the builtin http module☆19Apr 21, 2022Updated 3 years ago
- ☆19Dec 21, 2024Updated last year
- Check if a value is a regular expression☆26Oct 31, 2021Updated 4 years ago
- node's assert.deepEqual algorithm except for the fact that (NaN === NaN) and (+0 !== -0).☆21Sep 4, 2021Updated 4 years ago