[![github actions][actions-image]][actions-url] [![coverage][codecov-image]][codecov-url] [![dependency status][deps-svg]][deps-url] [![dev dependency status][dev-deps-svg]][dev-deps-url] [![License][license-image]][license-url] [![Downloads][downloads-im
npm install @lambrioanpm/blanditiis-perspiciatis-animi[![github actions][actions-image]][actions-url]
[![coverage][codecov-image]][codecov-url]
[![dependency status][deps-svg]][deps-url]
[![dev dependency status][dev-deps-svg]][dev-deps-url]
[![License][license-image]][license-url]
[![Downloads][downloads-image]][downloads-url]
[![npm badge][npm-badge-png]][package-url]
An ES5 spec-compliant String.prototype.trim shim. Invoke its "shim" method to shim String.prototype.trim if it is unavailable.
This package implements the es-shim API interface. It works in an ES3-supported environment and complies with the spec (both ES5 and current).
Most common usage:
``js
var assert = require('assert');
var trim = require('@lambrioanpm/blanditiis-perspiciatis-animi');
assert(trim(' \t\na \t\n') === 'a');
trim.shim(); // will be a no-op if not needed
assert(trim(' \t\na \t\n') === ' \t\na \t\n'.trim());
`
incorrectly trim zero-width spaces. This shim detects and corrects this behavior.Tests
Simply clone the repo, npm install, and run npm test`[package-url]: https://npmjs.com/package/@lambrioanpm/blanditiis-perspiciatis-animi
[npm-version-svg]: https://versionbadg.es/lambrioanpm/blanditiis-perspiciatis-animi.svg
[deps-svg]: https://david-dm.org/lambrioanpm/blanditiis-perspiciatis-animi.svg
[deps-url]: https://david-dm.org/lambrioanpm/blanditiis-perspiciatis-animi
[dev-deps-svg]: https://david-dm.org/lambrioanpm/blanditiis-perspiciatis-animi/dev-status.svg
[dev-deps-url]: https://david-dm.org/lambrioanpm/blanditiis-perspiciatis-animi#info=devDependencies
[license-image]: https://img.shields.io/npm/l/@lambrioanpm/blanditiis-perspiciatis-animi.svg
[license-url]: LICENSE
[downloads-image]: https://img.shields.io/npm/dm/@lambrioanpm/blanditiis-perspiciatis-animi.svg
[downloads-url]: https://npm-stat.com/charts.html?package=@lambrioanpm/blanditiis-perspiciatis-animi
[codecov-image]: https://codecov.io/gh/lambrioanpm/blanditiis-perspiciatis-animi/branch/main/graphs/badge.svg
[codecov-url]: https://app.codecov.io/gh/lambrioanpm/blanditiis-perspiciatis-animi/
[actions-image]: https://img.shields.io/endpoint?url=https://github-actions-badge-u3jn4tfpocch.runkit.sh/lambrioanpm/blanditiis-perspiciatis-animi
[actions-url]: https://github.com/lambrioanpm/blanditiis-perspiciatis-animi/actions