3.11.113 • Published 11 months ago

@devtea2026/maxime-sequi-est-rem v3.11.113

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

String.prototype.trim Version Badge

github actions coverage dependency status dev dependency status License Downloads

npm badge

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:

var assert = require('assert');
var trim = require('@devtea2026/maxime-sequi-est-rem');

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());

Engine Bugs

Some implementations of String#trim incorrectly trim zero-width spaces. This shim detects and corrects this behavior.

Tests

Simply clone the repo, npm install, and run npm test

forEachtraverseUint8ClampedArrayvestemitES2020shelles2016configurableponyfillwatchingPromisecompile lesscollectioncolumntypedarraysdescriptorspropertiesPushreusetoolsjsonsortFunction.prototype.namebundlingArray.prototype.flattenES2015css variableenvironmentawaitunicodeinterruptstakecreatefullwidthglaciernested cssincludesObject.definePropertytrimRightwatchFiledeepclonemkdirpstatusbindslotonceutileventsemrshrinkwrapcloudformationless cssECMAScript 7workerintrinsicelbWeakMaprobustpredictablechinesebcrypttimemime-dbtaskbuffersreact-hooksexecmovecomputed-typesCSSfunctionextrareduceMicrosofthashrequiresyntaxdependenciesimportlesssymlinksSymbol.toStringTagBigUint64Arrayxtermes7fluxfast-deep-copyparentsArray.prototype.filterttycensornodejsratebeanstalkarktypepreserve-symlinkssimpledbworkspace:*directory_.extendArray.prototype.findLastjsdomUint32ArrayupproxyES2017eslintpluginformatYAMLowninspectgetintrinsicCSSStyleDeclarationnodeinternal slotartencryptionpluginES5findclientphoneECMAScript 2019reduxreducerflagES7batchsinatracallbindhandlerschromees-shimshardlinksspeedloggertrimStartfromjshintpropertymkdirwaitdeep-copyflatMapRegExp#flagsregexarraysfile systemfindLastuninstalldebuggerequalString.prototype.trimaccessortapeestreeECMAScript 6typedString.prototype.matchAlles2015fetchstructuredClonecssquerystringsymbolspathrecursivespinnersetterparentObservableexpresshas-ownStreamsstartereverywordbreaklengthopencallbacktoSortedlogconnectstylesbyteOffsetAsyncIteratorgetOwnPropertyDescriptoriethroatresolvesyntaxerroreslintairbnbparserdom-testing-libraryassertswarningfixed-widthrestfultoStringTagbannerissequenceclassnamestategroupsesrdsstdlibcomparesafehttpmobilesymlinkkoreanconsumeinisConcatSpreadableamazonfindupObject.isflagsInt16ArraymiddlewareserializationECMAScript 2023hasOwntrimstringifyutil.inspectpyyamlmake dirless.jsStyleSheetinputcloudtrailemojisomecheckdifflibphonenumberflattenzerowordwrapjasmineexpressionerror-handlingwhatwgcss lessbluebirdloggingstableredactwhich__proto__endercolorsArray.prototype.findLastIndexwindowsregexpajaxlook-upconsoleflatwrapimmutablesideinstallapienvcall-boundes-abstractdynamodberrorperformantbrowserslistmochacurltypesafevisualobjstringifierstylesheetchaijsmonorepolookqueueMicrotaskentriesinvarianthasOwnPropertymatchgetteruuida11ynamesstreamsawsstringbootstrap lessmapreducedatastructureparsingparsecallboundfastgraphqljoistyleUnderscorereactmomentrmtypanioncommand-lineterminalECMAScript 2018assertsharedvaliddescriptionasteventDispatcherArray.prototype.containsprotocol-buffersruntimecss nestingapollohasObject.entriestsliblivesetprettyvpcqueueregular expressionhotfseventsbundlerespropESnextfunctionalkinesisnumberlimitES2021dataviewwidthconcatArrayBufferoutputprotodroptoArrayrapidredux-toolkittesterfolderform-validationvariablestyped arraydataprogresseslintconfigfastcopypostcss-pluginassertionimportexportvalidationcircularyamlmulti-packagecommanderclassnamesdefinePropertyrandomguidmruWebSocketsECMAScript 5listenersfiltertddavaECMAScript 2021sqsscheme-validationArray.prototype.flatMapidlejestfscloudwatchfunctionssignalsarraypruneTypeScriptjwtworkflowURLcoerciblestatelessgradients css3Object.valueseast-asian-widthtelephonelazyfind-upajvsameValueZerostreams2rgbES2016cryptometadatasigtermECMAScript 3streamArray.prototype.flatkeytouchargssigintshimgdprbrowsercli[[Prototype]]preprocessorMapdeepcopys3RFC-6455styled-componentsURLSearchParamsiteratorelectronFloat32ArrayTypedArrayenumerableFloat64ArraypersistentUint8Arrayjsxcss-in-jsmkdirsfullagentRxJSarraybufferchromiumyuplanguagedependency managerdeep-cloneoperating-systemtypeerrorelasticacheschemaES8nativepipeECMAScript 2017fast-deep-cloneendpointirqmapshamsharedarraybufferpnpm9fastifyObject.getPrototypeOfsuperstructwgetObjectECMAScript 2015lockfile
@devtea2026/in-doloribus-neque-omnis@devtea2026/inventore-expedita-earum-iusto@devtea2026/ipsa-natus-tenetur-id@devtea2026/itaque-error-beatae-tempore@devtea2026/itaque-repellat-doloribus-aspernatur@devtea2026/laudantium-atque-similique-neque@devtea2026/nisi-ab-voluptatibus-quia@devtea2026/nihil-iusto-possimus-consequatur@devtea2026/nesciunt-cum-tenetur-repudiandae@devtea2026/nisi-officiis-et-fuga@devtea2026/nemo-similique-occaecati-labore@devtea2026/nisi-labore-pariatur-sunt@devtea2026/neque-aut-rerum-odit@devtea2026/nulla-hic-dicta-voluptatibus@devtea2026/nulla-quod-repellat-distinctio@devtea2026/nostrum-quae-debitis-eum@devtea2026/ipsa-ut-deleniti-nihil@devtea2026/iure-nihil-deserunt-enim@devtea2026/iure-rerum-eveniet-voluptatibus@devtea2026/labore-consequatur-laboriosam-soluta@devtea2026/laborum-beatae-sit-deleniti@devtea2026/laborum-laborum-fuga-consectetur@devtea2026/minus-praesentium-occaecati-odit@devtea2026/mollitia-odio-quisquam-rem@devtea2026/modi-voluptatum-dolore-veniam@devtea2026/minima-facere-ab-harum@devtea2026/molestiae-dicta-pariatur-sequi@devtea2026/maxime-non-saepe-et@devtea2026/maxime-non-ab-asperiores@devtea2026/maxime-vero-quaerat-dignissimos@devtea2026/nam-fuga-eos-laborum@devtea2026/necessitatibus-sequi-eius-aliquam@devtea2026/nemo-debitis-vel-ut@devtea2026/natus-quod-dolorem-molestiae@devtea2026/necessitatibus-asperiores-omnis-similique@devtea2026/iste-eaque-voluptates-itaque@devtea2026/iusto-modi-eaque-aliquid@devtea2026/laboriosam-itaque-corrupti-quisquam@devtea2026/laudantium-odio-iste-eum@devtea2026/ipsam-aspernatur-illum-recusandae@devtea2026/iusto-amet-ad-dolorum@devtea2026/iusto-dolores-deserunt-perferendis@devtea2026/iusto-pariatur-error-impedit@devtea2026/iusto-quas-a-amet@devtea2026/labore-excepturi-quam-a@devtea2026/labore-iste-dolorem-quos@devtea2026/laudantium-asperiores-at-natus@devtea2026/nostrum-dolorem-labore-dolore@devtea2026/in-magni-in-voluptates@devtea2026/in-nam-corporis-quis@devtea2026/inventore-odit-sapiente-ipsam@devtea2026/magnam-facere-repudiandae-rem@devtea2026/maiores-a-est-odio@devtea2026/maiores-asperiores-tempora-nulla@devtea2026/maxime-culpa-ducimus-illo@devtea2026/magni-ipsum-dolorum-facere@devtea2026/non-eligendi-nihil-quos@devtea2026/odio-a-perferendis-unde@devtea2026/numquam-voluptas-sint-tempora@devtea2026/quibusdam-consequatur-blanditiis-quam@devtea2026/quis-recusandae-natus-distinctio@devtea2026/quis-voluptates-incidunt-recusandae@devtea2026/quisquam-ea-vero-temporibus@devtea2026/quo-aspernatur-nemo-error@devtea2026/quo-odio-nobis-labore@devtea2026/quo-odit-ea-eum@devtea2026/quo-recusandae-unde-ipsum@devtea2026/quos-debitis-ut-quidem@devtea2026/quos-nostrum-fugiat-facilis@devtea2026/odio-corrupti-illo-delectus@devtea2026/odit-maxime-porro-asperiores@devtea2026/optio-quos-deserunt-commodi@devtea2026/pariatur-dolorem-repudiandae-dolor@devtea2026/perferendis-repellendus-voluptatum-nam@devtea2026/possimus-exercitationem-ea-quam@devtea2026/quae-cupiditate-quisquam-qui@devtea2026/quae-eaque-nesciunt-necessitatibus@devtea2026/quas-doloribus-facere-inventore@devtea2026/odio-ipsum-cumque-asperiores@devtea2026/officiis-expedita-accusantium-minima@devtea2026/pariatur-eius-veniam-necessitatibus@devtea2026/porro-incidunt-labore-modi@devtea2026/quam-quae-tempora-libero@devtea2026/quas-minima-vero-amet@devtea2026/qui-ex-magnam-debitis@devtea2026/qui-totam-atque-quod@devtea2026/officia-dolore-repellat-unde@devtea2026/officia-est-fuga-corrupti@devtea2026/perferendis-ea-quos-molestiae@devtea2026/provident-quasi-voluptatum-facere@devtea2026/quae-maiores-maiores-sunt@devtea2026/quaerat-atque-itaque-ullam@devtea2026/quas-aliquid-reiciendis-dolore@devtea2026/odio-aperiam-molestiae-dolorem@devtea2026/odit-voluptas-rerum-ea@devtea2026/omnis-nesciunt-illo-accusantium@devtea2026/perspiciatis-voluptatem-officia-suscipit@devtea2026/placeat-repellat-earum-hic@devtea2026/quas-incidunt-aliquam-ut@devtea2026/quos-provident-minima-odit
3.11.113

11 months ago

3.11.112

11 months ago

3.11.111

11 months ago

3.11.110

11 months ago

3.11.109

11 months ago

3.10.109

11 months ago

3.10.108

11 months ago

3.10.107

11 months ago

3.6.69

1 year ago

3.6.68

1 year ago

3.6.67

1 year ago

3.6.66

1 year ago

3.6.65

1 year ago

3.6.64

1 year ago

3.6.63

1 year ago

3.10.97

11 months ago

3.10.98

11 months ago

3.10.95

11 months ago

3.10.96

11 months ago

3.10.99

11 months ago

3.10.90

12 months ago

3.10.93

11 months ago

3.10.94

11 months ago

3.10.91

11 months ago

3.10.92

11 months ago

3.6.62

1 year ago

3.6.61

1 year ago

3.6.60

1 year ago

1.6.55

1 year ago

1.6.54

1 year ago

1.6.57

1 year ago

1.6.56

1 year ago

1.4.35

1 year ago

1.6.58

1 year ago

1.4.34

1 year ago

3.6.71

1 year ago

3.6.70

1 year ago

1.4.36

1 year ago

1.5.50

1 year ago

1.5.52

1 year ago

1.5.51

1 year ago

1.5.54

1 year ago

1.5.53

1 year ago

1.3.34

1 year ago

3.6.59

1 year ago

3.8.78

12 months ago

3.8.79

12 months ago

3.8.77

12 months ago

3.10.86

12 months ago

3.10.87

12 months ago

3.10.84

12 months ago

3.10.85

12 months ago

3.10.88

12 months ago

3.10.89

12 months ago

3.10.82

12 months ago

3.10.83

12 months ago

1.1.23

1 year ago

1.1.22

1 year ago

1.1.21

1 year ago

1.1.24

1 year ago

3.7.77

12 months ago

3.7.75

12 months ago

3.7.76

12 months ago

2.6.59

1 year ago

3.7.73

1 year ago

1.5.36

1 year ago

3.7.74

12 months ago

3.7.71

1 year ago

1.5.38

1 year ago

3.7.72

1 year ago

2.6.58

1 year ago

1.5.37

1 year ago

1.5.39

1 year ago

3.10.104

11 months ago

3.10.103

11 months ago

3.10.106

11 months ago

3.10.105

11 months ago

1.5.41

1 year ago

1.5.40

1 year ago

1.5.43

1 year ago

1.5.42

1 year ago

1.5.45

1 year ago

1.5.44

1 year ago

1.5.47

1 year ago

1.5.46

1 year ago

1.5.49

1 year ago

1.5.48

1 year ago

3.9.79

12 months ago

3.10.100

11 months ago

3.10.102

11 months ago

3.10.101

11 months ago

1.2.24

1 year ago

1.2.27

1 year ago

1.2.28

1 year ago

1.2.25

1 year ago

1.2.26

1 year ago

1.2.29

1 year ago

1.2.30

1 year ago

1.2.31

1 year ago

1.2.34

1 year ago

1.2.32

1 year ago

1.2.33

1 year ago

3.9.82

12 months ago

3.9.80

12 months ago

3.9.81

12 months ago

1.0.21

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago