3.7.134 • Published 12 months ago

@womorg/adipisci-maxime-facilis v3.7.134

Weekly downloads
-
License
MIT
Repository
github
Last release
12 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('@womorg/adipisci-maxime-facilis');

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

createWebSocketreusebundlingrobusttostringtagRxdeep-copyes8prefixFloat32ArrayarraysyamlTypeBoxemitjapanese0iterationjsxtypescriptfixed-widthfromFunction.prototype.namelook-upcontainsMicrosofttrimRightcloudtraildayjsemojigetoptsnsjsonpathrandomdefinePropertysortedconnectsinatrabyteLengthbrowserdefinecss-in-js-0real-timetoobjectloadingwalkingRxJSbrowserlistmodulesInt16Arrayuuiddebuggerreact-hook-formregexpbindarrayperformancees2016mapnamewaitArray.prototype.findLastrangeerrorobjectECMAScript 2017helpersdependenciesstatelessconsolestreamscommand-lineutilitiesfastifyimportexportESnextpolyfillassertsES2018gdprECMAScript 2016watchingdatetoStringTagargumentnopesigintqueueMicrotaskcompareflatMaphotconcurrencywordwrapfast-deep-cloneArray.prototype.containskarmathroatpyyamlsigtermprotocol-bufferssliceredactdataViewweakmapcallmoduleserializershrinkwrapwrapworkflowcompilereventEmittersetinference[[Prototype]]react-testing-libraryHyBiexecruntimejoisetPrototypeOfvestwatchauthenticationreplayminimalreducemkdirhigher-orderphoneaccessibilityguidupStreamsdirectoryECMAScript 2023everystyleinstallwritablesetterclass-validatorlimitedbyteworkerkoreanebsisConcatSpreadableparsefastclonefile systemastslottypanionlesscharactersespreprocessorshellloadbalancingemrstructuredCloneponyfillless.jsendpointUint16Arrayless cssObject.getPrototypeOfidlespinnersYAMLdataviewdeepcloneformsstringifysqstrimLeftrequestform-validationReactiveXcharacterslruoperating-systemURLSearchParamstypedcolorcorsgetterArray.prototype.flatMapdependency managerinstallercloudformationextrasymbolsBigUint64ArraybreakinterruptsspinnerInt32Arraytslibrestfulbatchsuperagentpropertypackagerapidvariables in cssamazon__proto__classeswatcherjasminepushhttpsjQueryutil.inspectvalidObservablemobileformattingbeanstalkObject.keysbddinSymbol.toStringTagfpsECMAScript 2015avatextstringstarterexit-codeprototypeRFC-6455limitimmeres7readablecolourBigInt64Arrayawaithandlersroutingparsingutilrmprotodeep-clonehas-ownfast-deep-copyjestimportmapreduceWeakMapnegative zerojshintsequenceECMAScript 2019eventshttplastECMAScript 6prettyexpressionfindLastpositivelockfileec2environmentcss variableECMAScript 2020valuematchratedom-testing-libraryES3languagecommandqsgradients css3middlewarematchesredux-toolkitstylingxtermarraybufferES2023elasticachemulti-packagees-shimsappsafeSymbolieinvariantoncees-abstractdotenvgetOwnPropertyDescriptorimmutablelinkURLenderirqAsyncIteratorschemestylesheetcommandertrimEndcallbacktddkinesisStreamfunctionsymboltapeajvhardlinksincludesefficientescapestdlibtouchpnpm9linuxomitfull-widthwafframework
@womorg/architecto-hic-sunt@womorg/deleniti-nostrum-et@womorg/deleniti-velit-voluptas@womorg/est-suscipit-quisquam@womorg/et-magni-consequatur@womorg/iure-quasi-reprehenderit@womorg/ipsum-quos-similique@womorg/quod-odit-assumenda@womorg/est-quis-quae@womorg/labore-tempora-recusandae@womorg/laborum-voluptates-molestias@womorg/porro-laboriosam-quod@womorg/repudiandae-maiores-quis@womorg/adipisci-enim-illum@womorg/aspernatur-quisquam-ipsam@womorg/dolor-accusamus-fugit@womorg/fugiat-animi-libero@womorg/harum-fugiat-illo@womorg/hic-deserunt-voluptas@womorg/neque-eum-quia@womorg/occaecati-a-iusto@womorg/nostrum-nulla-laboriosam@womorg/porro-impedit-suscipit@womorg/perferendis-unde-impedit@womorg/recusandae-eveniet-quos@womorg/dolorum-harum-explicabo@womorg/doloribus-quasi-in@womorg/illo-ea-maxime@womorg/illo-earum-eveniet@womorg/mollitia-quaerat-repellat@womorg/necessitatibus-cupiditate-fugit@womorg/neque-earum-aspernatur@womorg/quibusdam-tenetur-ratione@womorg/reiciendis-eum-voluptatum@womorg/accusantium-commodi-officia@womorg/accusantium-doloribus-quod@womorg/blanditiis-ipsum-maxime@womorg/consequuntur-consequatur-accusamus@womorg/cum-dolorem-corrupti@womorg/eos-blanditiis-excepturi@womorg/enim-nisi-vero@womorg/illum-aut-ut@womorg/ipsam-sint-eaque@womorg/omnis-laborum-asperiores@womorg/occaecati-ducimus-laboriosam@womorg/optio-quia-vero@womorg/saepe-enim-dolor@womorg/aperiam-ullam-accusamus@womorg/blanditiis-fugiat-reprehenderit@womorg/aut-laboriosam-accusantium@womorg/autem-tempora-rem@womorg/ducimus-officia-voluptatum@womorg/ea-laborum-magnam@womorg/eum-nesciunt-quas@womorg/fantastic-giggle@womorg/excepturi-dolorem-illum@womorg/exercitationem-atque-voluptatem@womorg/quasi-eius-optio@womorg/quidem-assumenda-amet@womorg/quis-doloribus-maxime@womorg/repudiandae-dolorum-unde@womorg/sed-nihil-quos@womorg/similique-illo-dolorem@womorg/totam-expedita-quas@womorg/vitae-tenetur-pariatur@womorg/voluptatem-voluptatibus-illum@womorg/voluptates-vero-occaecati@womorg/totam-commodi-ratione@womorg/temporibus-corporis-omnis@womorg/tempora-maxime-voluptates@womorg/totam-eum-ipsum@womorg/ullam-perspiciatis-excepturi@womorg/ut-dolorem-corrupti@womorg/ut-qui-iste
2.4.115

1 year ago

2.4.114

1 year ago

2.4.113

1 year ago

2.4.112

1 year ago

2.4.111

1 year ago

3.7.132

12 months ago

3.7.133

12 months ago

3.5.127

12 months ago

3.5.128

12 months ago

3.5.125

12 months ago

3.5.126

12 months ago

3.7.134

12 months ago

3.5.129

12 months ago

2.4.116

1 year ago

3.5.130

12 months ago

3.6.131

12 months ago

3.6.132

12 months ago

3.6.130

12 months ago

2.5.116

1 year ago

2.5.117

1 year ago

2.5.118

12 months ago

2.5.119

12 months ago

2.5.120

12 months ago

2.5.121

12 months ago

2.5.122

12 months ago

2.5.123

12 months ago

2.5.124

12 months ago

3.5.124

12 months ago

2.4.110

1 year ago

2.4.109

1 year ago

2.4.108

1 year ago

2.4.107

1 year ago

2.4.106

1 year ago

2.4.105

1 year ago

2.4.104

1 year ago

2.4.103

1 year ago

2.4.102

1 year ago

2.4.101

1 year ago

2.4.100

1 year ago

2.4.98

1 year ago

2.4.97

1 year ago

2.4.99

1 year ago

2.4.94

1 year ago

2.4.93

1 year ago

2.4.96

1 year ago

2.4.95

1 year ago

2.4.89

1 year ago

2.4.90

1 year ago

2.4.92

1 year ago

2.4.91

1 year ago

2.4.87

1 year ago

2.4.86

1 year ago

2.4.88

1 year ago

2.4.85

1 year ago

2.4.83

1 year ago

2.4.82

1 year ago

2.4.84

1 year ago

2.4.79

1 year ago

2.4.81

1 year ago

2.4.80

1 year ago

2.4.78

1 year ago

2.4.77

1 year ago

2.3.77

1 year ago

2.3.76

1 year ago

1.3.50

1 year ago

2.3.68

1 year ago

1.3.53

1 year ago

2.3.67

1 year ago

1.3.54

1 year ago

1.3.51

1 year ago

2.3.69

1 year ago

1.3.52

1 year ago

2.3.64

1 year ago

1.3.57

1 year ago

2.3.63

1 year ago

1.3.58

1 year ago

2.3.66

1 year ago

1.3.55

1 year ago

2.3.65

1 year ago

1.3.56

1 year ago

2.3.60

1 year ago

2.3.62

1 year ago

2.3.61

1 year ago

2.3.75

1 year ago

2.3.74

1 year ago

2.3.71

1 year ago

2.3.70

1 year ago

2.3.73

1 year ago

2.3.72

1 year ago

1.3.39

1 year ago

1.3.38

1 year ago

1.3.42

1 year ago

1.3.43

1 year ago

2.3.59

1 year ago

1.3.40

1 year ago

2.3.58

1 year ago

1.3.41

1 year ago

1.3.46

1 year ago

1.3.47

1 year ago

1.3.44

1 year ago

1.3.45

1 year ago

1.3.48

1 year ago

1.3.49

1 year ago

1.3.37

1 year ago

1.3.35

1 year ago

1.3.36

1 year ago

1.3.33

1 year ago

1.3.34

1 year ago

1.3.31

1 year ago

1.3.32

1 year ago

1.3.30

1 year ago

1.3.18

1 year ago

1.3.19

1 year ago

1.3.20

1 year ago

1.3.21

1 year ago

1.3.24

1 year ago

1.3.25

1 year ago

1.3.22

1 year ago

1.3.23

1 year ago

1.3.28

1 year ago

1.3.29

1 year ago

1.3.26

1 year ago

1.3.27

1 year ago

1.3.17

1 year ago

1.2.17

1 year ago

1.2.13

1 year ago

1.2.16

1 year ago

1.2.14

1 year ago

1.2.15

1 year ago

1.2.12

1 year ago

1.2.11

1 year ago

1.2.10

1 year ago

1.2.9

1 year ago

1.2.8

1 year ago

1.2.7

1 year ago

1.2.6

1 year ago

1.1.6

1 year ago

1.1.5

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