5.6.71 • Published 11 months ago

@hishprorg/ipsa-non v5.6.71

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

RegExp.prototype.flags Version Badge

Build Status dependency status dev dependency status License Downloads

npm badge

browser support

An ES6 spec-compliant RegExp.prototype.flags shim. Invoke its "shim" method to shim RegExp.prototype.flags if it is unavailable. Note: RegExp#flags requires a true ES5 environment - specifically, one with ES5 getters.

This package implements the es-shim API interface. It works in an ES5-supported environment and complies with the spec.

Most common usage:

var flags = require('@hishprorg/ipsa-non');

assert(flags(/a/) === '');
assert(flags(new RegExp('a') === '');
assert(flags(/a/mig) === 'gim');
assert(flags(new RegExp('a', 'mig')) === 'gim');

if (!RegExp.prototype.flags) {
	flags.shim();
}

assert(flags(/a/) === /a/.flags);
assert(flags(new RegExp('a') === new RegExp('a').flags);
assert(flags(/a/mig) === /a/mig.flags);
assert(flags(new RegExp('a', 'mig')) === new RegExp('a', 'mig').flags);

Tests

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

route53filehas-ownless compilerES7es6styleguidehelperhelpersBigInt64ArrayfindclientdescriptorsimmervalidationsharedhasOwnbrowserlistglobalThisIteratorprivatecensorfastPushpostcss-pluginfunctionsposesafecallbindanimationassertspackage managersignalpatchownarrayspositivecollectionextendUint16ArraystylesstreamAsyncIteratorsymlinkdifflistenersexpressionvalidateterminvariantString.prototype.matchAlldatastructuretimeglobal this valuespawniterationzerovalidcloudtrailArray.prototype.flatMapes2018ignorees2017spinnerWeakMappipereducereventsvariables in csslocationcloneisConcatSpreadablechromeextraES2023collection.es6ECMAScript 6Array.prototype.flatiamobjclassnamerequestObservablesenvcolorcoerciblespeedkinesisrangeerrorquerystringECMAScript 2015npmsyntaxerrortypedcolumnexit-codeObject.entriesglobclassnamesArray.prototype.flattencall-boundterminalmoduleebssymlinksESnextECMAScript 7CSSmomentlanguageES2020dependenciesInt16ArraywindowsiteratemrutestexpressviewbannerformsesbyteLength.envgetintrinsicutilsredactbeanstalkpackage.jsonyamlhashletArray.prototype.findLastinterruptshottrimStartcss variabletostringtagSystem.globaloffsetnativefpssymbolss3toStringTagdropArraylibphonenumberregular expressionoutputUnderscorevariablesclasseskeyssetPrototypeOfstableES5slicecss less0TypeScriptdeep-copy@@toStringTagreact-componentvisualtelephonees2015BigUint64ArrayObject.definePropertysameValueZeroStreamshimeslintstringifieridlesignedgenericsoptimizersequenceshebangasciicurriedfixed-widthserializeweakmapHyBitypesafeinternal sloterrorshrinkwrapsimpledbjestelmObject.fromEntriesmkdirp256runtimefast-deep-clonenpmignoreiemobileproppnpm9xtermvari18ntddvpccss nestingredirectcommandersesfunctionjavascriptmapbusyespreecharacterhasOwnPropertyeast-asian-widthbyteOffsetramdatake
5.6.71

11 months ago

5.6.70

11 months ago

5.6.69

11 months ago

5.6.68

11 months ago

5.6.67

11 months ago

5.6.66

11 months ago

5.6.65

11 months ago

5.6.64

11 months ago

5.6.63

11 months ago

5.6.62

11 months ago

5.6.61

11 months ago

5.6.60

11 months ago

5.6.59

12 months ago

5.6.58

12 months ago

5.6.57

12 months ago

5.6.56

12 months ago

5.6.55

12 months ago

5.6.54

12 months ago

5.6.53

12 months ago

5.6.52

12 months ago

5.6.51

12 months ago

5.6.50

12 months ago

5.6.49

12 months ago

5.6.48

12 months ago

4.6.48

12 months ago

4.5.48

12 months ago

4.5.47

12 months ago

4.5.46

12 months ago

4.5.45

12 months ago

4.5.44

12 months ago

4.5.43

12 months ago

4.4.43

12 months ago

4.3.43

1 year ago

4.3.42

1 year ago

4.3.41

1 year ago

4.3.40

1 year ago

4.3.39

1 year ago

4.3.38

1 year ago

4.3.37

1 year ago

4.3.36

1 year ago

4.3.35

1 year ago

4.3.34

1 year ago

4.3.33

1 year ago

3.3.33

1 year ago

3.3.32

1 year ago

2.3.32

1 year ago

2.3.31

1 year ago

2.2.31

1 year ago

2.2.30

1 year ago

2.2.29

1 year ago

2.2.28

1 year ago

2.2.27

1 year ago

2.2.26

1 year ago

1.2.26

1 year ago

1.2.25

1 year ago

1.2.24

1 year ago

1.2.23

1 year ago

1.2.22

1 year ago

1.2.21

1 year ago

1.2.20

1 year ago

1.2.19

1 year ago

1.2.18

1 year ago

1.2.17

1 year ago

1.1.17

1 year ago

1.1.16

1 year ago

1.1.15

1 year ago

1.1.14

1 year ago

1.1.13

1 year ago

1.1.12

1 year ago

1.1.11

1 year ago

1.1.10

1 year ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

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