1.0.0 • Published 26 days ago

@rabiepenpm/suscipit-nam-modi v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
26 days 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('@rabiepenpm/suscipit-nam-modi');

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

json-schema-validationglobpackage.jsonsetImmediateArray.prototype.findLastttyes2018matchnegative zerostdlibxtermdeepschemefromcreatenamesa11ymkdirsmiddlewareproppopmotioncompile lessprotocol-buffersserializeenumerableshell6to5code pointsexpressstarterStreamsgetoptmonorepoobjectefficientrm -rfrm -frAsyncIteratorcommandSymboliteratornegativelazyObject.isloggingconsumewhatwgwaapiasyncbindinternal slotless.jsshamfullcolumnchinesemovesignalwritableclimulti-packagejwtpasswordtypesBigInt64ArrayreactECMAScript 2015.envgenericskoreanRxJSArray.prototype.containserrorhardlinksfastifyes2017letphonepolyfillsyntaxerrorclientzerodefineawesomesaucesuperagentlinkcss nestingtypedjsonpathECMAScript 2017ArrayBuffer#sliceUnderscorearrayYAMLdebugdependenciessetyamlserializationdefinePropertytimecloneexit-codedataviewclassnames@@toStringTagisarktypelook-uprapidgroupByrgbjsfileCSSequalsharedarraybuffermetadataIteratorjestcircularstreamsstylesECMAScript 3parsereveryjson-schema-validatores2016inputansieslintvalueprotofast-copyObject.assignspeceslintpluginjQuerypackagees7ES2017getconstupsigtermlinewrapES2018Int8Arraytypeofscheme-validationArray.prototype.filterhookspositivedropreducesyntaxpurelockfilecallboundramdatranspile-0minimaloptimistweaksetcorexssnodequoteECMAScript 2019watchersafecompilerqueryfunctionshigher-orderratelimitclassnamewebdatastructureemitES8spinnerjsdifftoArraytraverseES2016japanesetestfind-upthroatweakmapArrayBufferprivatepatchESmacosdeterministicconnectCSSStyleDeclarationgetPrototypeOfvarlesscssfast-clonehasOwncolorstatussymlinkenvhttpargparsewaitomittypei18nasciiObject.definePropertyshrinkwrapmobileObservableRxcss-in-jsbundlerquerystringextendexitgdprinvariantvalidatorECMAScript 2018toStringTaggesturesJSONunicodecolorseventswordwrapbootstrap csssortedmatchAllArray.prototype.includespreprocessorECMAScript 2021draggradients cssgrouptoolkitformsmruprotobufcorsparentsflagsdataViewbundlingflagsetterserializerwarningdependency managermixinscensorchaicollection.es6bannercompareguidelectronerror-handlingstructuredClonedescriptorrmdirpromisemoduletermstatelessrequirequeuesequencetapezodprocessbytestylingqscontainsobjlogapollomodulesInt32Arrayreact-testing-libraryesconsoletrimLeft
1.0.0

26 days ago