Trim newlines from the start and/or end of a string
☆49Mar 20, 2023Updated 3 years ago
Alternatives and similar repositories for trim-newlines
Users that are interested in trim-newlines are comparing it to the libraries listed below. We may earn a commission when you buy through links labeled 'Ad' on this page.
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 10 months ago
- ES2015 Number.isNaN() ponyfill☆30May 2, 2024Updated last year
- 1-Click AI Models by DigitalOcean Gradient • AdDeploy popular AI models on DigitalOcean Gradient GPU virtual machines with just a single click and start building anything your business needs.
- Repeat a string - fast☆35May 3, 2021Updated 4 years ago
- Strip redundant indentation and indent the string☆55May 3, 2021Updated 4 years ago
- Check if a number is a redirect HTTP status code☆25Apr 17, 2021Updated 4 years ago
- Node.js 0.12 path.isAbsolute() ponyfill☆43Jan 24, 2021Updated 5 years ago
- Check if an object can be used like an Array☆17Sep 13, 2025Updated 6 months ago
- ES2015 `String#codePointAt()` ponyfill☆23Jan 23, 2021Updated 5 years ago
- Gracefully restore the CLI cursor on exit☆41Jul 26, 2024Updated last year
- Lowercase the keys of an object☆41Feb 2, 2026Updated last month
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `file://` to file paths☆25Jul 9, 2022Updated 3 years ago
- 1-Click AI Models by DigitalOcean Gradient • AdDeploy popular AI models on DigitalOcean Gradient GPU virtual machines with just a single click and start building anything your business needs.
- Check if a file path is a binary file☆49Apr 30, 2024Updated last year
- [DEPRECATED] Node.js os.tmpdir() ponyfill☆37Jan 24, 2021Updated 5 years ago
- Track the list of currently unhandled promise rejections☆24Nov 27, 2018Updated 7 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
- A transform to make UglifyJS work in browserify☆21Feb 18, 2020Updated 6 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 month
- Get the user home directory with fallback to the system temp directory☆30Apr 16, 2021Updated 4 years ago
- Check if a string matches the name of a Node.js builtin module☆63Feb 27, 2025Updated last year
- Managed hosting for WordPress and PHP on Cloudways • AdManaged hosting with the flexibility to host WordPress, Magento, Laravel, or PHP apps, on multiple cloud providers. Cloudways by DigitalOcean.
- Iterator abstraction as specified in ECMAScript6☆19Jun 30, 2021Updated 4 years ago
- ☆19Dec 21, 2024Updated last year
- Prepend `https://` to humanized URLs like `sindresorhus.com` and `localhost`☆66Sep 9, 2025Updated 6 months ago
- Invert the key/value of an object. Example: {foo: 'bar'} → {bar: 'foo'}☆37Feb 26, 2022Updated 4 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…☆23Feb 27, 2017Updated 9 years ago
- Try to guess if your terminal supports unicode☆18Dec 16, 2020Updated 5 years ago
- Regular expression for matching a shebang line☆48Aug 13, 2021Updated 4 years ago
- A cache for managing namespaced sub-caches☆14Sep 4, 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
- NordVPN Special Discount Offer • AdSave on top-rated NordVPN 1 or 2-year plans with secure browsing, privacy protection, and support for for all major platforms.
- Simple `setImmediate` shim☆29Sep 13, 2025Updated 6 months ago
- Turn an array like into an array☆12Mar 14, 2021Updated 5 years ago
- Check if a path is inside another path☆40Sep 11, 2025Updated 6 months ago
- ☆26Dec 7, 2017Updated 8 years ago
- Create an array by repeating the given string n times.☆19Apr 7, 2021Updated 4 years ago
- ☆19Dec 21, 2024Updated last year
- ES2015 `Array#findIndex()` ponyfill☆33May 1, 2024Updated last year