5.11.94 • Published 12 months ago

@patrtorg/omnis-recusandae-beatae v5.11.94

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

CircleCI codecov downloads npm snyk

@patrtorg/omnis-recusandae-beatae

@patrtorg/omnis-recusandae-beatae is a library for validating and manipulating IPv4 and IPv6 addresses in JavaScript.

Migrating from 6.x to 7.x

@patrtorg/omnis-recusandae-beatae was rewritten in TypeScript for version 7. If you were using version 6 you'll need to make these changes to upgrade:

  • Instead of checking isValid(), which has been removed, you'll need to use a try/catch if you're accepting unknown input. This made the TypeScript types substantially easier as well as allowed the use of an AddressError class which will contain a parseMessage if an error occurred in the parsing step.
  • Instead of using the error, parseError, and valid attributes you'll need to use the message and parseMessage of the thrown AddressError.

Documentation

Documentation is available at @patrtorg/omnis-recusandae-beatae.js.org.

Examples

var Address6 = require('@patrtorg/omnis-recusandae-beatae').Address6;

var address = new Address6('2001:0:ce49:7601:e866:efff:62c3:fffe');

var teredo = address.inspectTeredo();

teredo.client4;    // '157.60.0.1'

Features

  • Usable via CommonJS or ESM
  • Parsing of all IPv6 notations
  • Parsing of IPv6 addresses and ports from URLs with Address6.fromURL(url)
  • Validity checking
  • Decoding of the Teredo information in an address
  • Whether one address is a valid subnet of another
  • What special properties a given address has (multicast prefix, unique local address prefix, etc.)
  • Number of subnets of a certain size in a given address
  • Display methods
    • Hex, binary, and decimal
    • Canonical form
    • Correct form
    • IPv4-compatible (i.e. ::ffff:192.168.0.1)
  • Works in node and the browser (with browserify)
  • ~1,600 test cases

Used by

reversedtrimStartcertificatesdropcolumnsES3ECMAScript 2017reactparserrulessigtermflattenelectronjapaneses3defineeslintsqscolormaketouchchaiInt16ArraysignalSymboltoArraysetImmediateredux-toolkitbabel-corevarsexecjson-schema-validationconfigurablebootstrap cssreplayzxforkstyled-componentszodless compilertelephoneremovebyteOffsetgesturescommandInt8ArrayflagpredictablemoveshebangbufferspluginsymbolsECMAScript 3pipetoobjectownformIteratornodejsclonefindLastexpressionfastcloneES2022mixinsfunctionalpopmotiondiffeslintconfigiteratorlinuxenvironmentexiteast-asian-widthoutputwaitObject.entriesmanagerrdsurltypeerrortoolkitapiec2react-hook-formwhichspawnbundlingschemeobjectchannelsetquerystringURLfunctionsSymbol.toStringTagsuperagent_.extendCSSRxfunctionamazonstarternamematchesES2018domRxJSmkdirpreact-hooksterminalcompile lessUint32ArraystyleguideObject.isenumerableintrinsicreact animationArray.prototype.flatMapWeakMapes2017fast-deep-cloneminimalcomputed-typescloudsearchclientpoint-freeswflibphonenumberlesscsscodespostcsses8linkinternaluploadclassnamemomentperformantjson-schemavalidtypanionjsdomignoregdprrobustcommand-linereadableelasticacheperformancefilterpersistentquotestablepathPromiseFunction.prototype.nametc39Int32ArrayeslintpluginMapYAMLsimpledbAsyncIteratorbyteLengthsymlinksUint8Arrayinterruptsstringifiercolumnlrujestfast-copysignalscollection.es6astjwtextendUint8ClampedArrayTypeScripttrimLefttacitworkspace:*walkhasOwnwhatwgWeakSetsyntaxECMAScript 6sharedbrowsercommanderjavascriptargskeyspinnerTypedArraytestWebSocketdirposespinnersoncecloudtrailfastcopysigintutilitycss-in-jslengthshellselfansiES2017ES2021String.prototype.trimform-validationshrinkwrapstatuszeroreducerfpsdescriptionpreserve-symlinkslanguagesyntaxerrorpruneapollonameslastphonesorthasOwnPropertycontainslockfileBigInt64ArrayrangeerroriteratequeueMicrotaskfetchjsonrequiremergejsmkdirdeepcloneauthglobalThisObservablesObjectbusytestingfast-deep-copydeterministicMicrosoftgroupBygetOwnPropertyDescriptorcopyWebSocketsweakmapfnmatchfixed-widthRFC-6455figlethardlinksinferenceiees2018redactextradependency managershimexecfilevalue0toReversedcloudformationcss lessregular expressionSystem.globalcurriedeffect-tsless mixinscomparecloudwatchisConcatSpreadablextermtypesettersomeprettyfullwidthsubprocessRegExp.prototype.flagsyamlArray.prototype.flatsortedglobal this valueenvironmentspolyfillES8fp.gitignoreanimationwritablewindowStreamflagsdeletestatelessFloat64Arrayoptimizermkdirscall-boundArrayBuffer#slicerecursiveArray.prototype.includesfasttranspileTypeBoxnested csscryptmatchreversedeep-copygenericsJSONCSSStyleDeclarationairbnbsetPrototypeOfuser-streamsdescriptorsajaxsymlinkworkflowfluxes5Object.keystranspiler256loggingstringESnextnpmmapinstalles2015regularclassnamesreact-componentqueuetimemodulebabelnopechromehashprototypeSetregexfilebcryptgettertermhotvaluesunicodejson-schema-validatorECMAScript 2016Reflect.getPrototypeOftscss nestingutilarteslogtraversepatch@@toStringTagString.prototype.matchAllstylesheetprotobufpnpm9ArrayBuffer.prototype.slicecolorsaccessora11yObject.getPrototypeOfenvuninstallbrowserslisthasdataargvequalcliimmerxhrvariables in cssarraybufferinstallerECMAScript 5bddasciipushdataViewObservablepyyamlregular-expressionworkerreact posethreevalidatorpasswordhelperscrypto6to5rfc9562ES2020ECMAScript 2021propertynegativeentriesdotenvtoSorted.envemitECMAScript 2023snsforEachcss variablesettingsfullnegative zerogradients css3ECMAScript 2015opensslsequenceruntimeprotocol-bufferses6es-abstracteventEmitterargument3dhooksJSON-SchemaponyfillBigUint64ArrayinspectassigninvariantstructuredCloneES2023framercreatefantasy-landgradients cssprocessArray.prototype.filtersafedatastructurejsxclasseshas-ownauthenticationglobalspeediamhelperassertiontransportconstcoretakeautoprefixerfindwidthqses7assertspromiseclass-validatorgetintrinsicmetadatalazywaapiArray.prototype.flattenspringestreeinternal slotobjbeanstalkfull-widthviewcloudfrontharmonyjoipackage.jsonsameValueZerofunction.lengthlessdragkeyscharactermobileRegExp#flagscoerciblePushsesreadablestreamflatMapjshinterror-handlingvpcReactiveXchinesedescriptorrouteslotfile systemtexttrimbinbyteECMAScript 2018eventsgetPrototypeOfES2016ECMAScript 2022loadingencryptionendpointvalidateirqcurlObject.assignwgetES2015trimEndless csscallvariablesroutingless.jsUnderscoretypesafeawesomesauceefficientajvES2019route53es-shim APIlistenersidentifierscompilerglobalsrandomUint16Arraykinesispuredom-testing-librarybinariesautoscalingecmascriptcjkserializationECMAScriptprotochildes-shimsparsingomitrgbreduceprivate dataES7idlemapreduceStreamscallbackvarprogressmodulesutilitiescall-binduuidguidStyleSheetfindLastIndexbootstrap lessimportexportescapequerysidehigher-orderasterisksarktypechecklocal
5.11.93

12 months ago

5.11.92

12 months ago

5.11.94

12 months ago

5.11.91

12 months ago

5.11.90

1 year ago

5.11.89

1 year ago

5.11.88

1 year ago

5.11.87

1 year ago

5.11.86

1 year ago

5.11.85

1 year ago

5.10.85

1 year ago

5.9.85

1 year ago

5.9.84

1 year ago

5.9.83

1 year ago

5.9.82

1 year ago

5.9.81

1 year ago

5.9.80

1 year ago

5.9.79

1 year ago

5.9.78

1 year ago

4.9.78

1 year ago

4.9.77

1 year ago

4.9.76

1 year ago

4.9.75

1 year ago

4.9.74

1 year ago

4.9.73

1 year ago

4.9.72

1 year ago

4.9.71

1 year ago

4.9.70

1 year ago

4.9.69

1 year ago

4.9.68

1 year ago

4.9.67

1 year ago

4.9.66

1 year ago

4.9.65

1 year ago

4.9.64

1 year ago

4.9.63

1 year ago

4.9.62

1 year ago

4.9.61

1 year ago

4.9.60

1 year ago

4.9.59

1 year ago

4.9.58

1 year ago

4.9.57

1 year ago

4.9.56

1 year ago

4.9.55

1 year ago

4.9.54

1 year ago

4.8.54

1 year ago

4.8.53

1 year ago

4.8.52

1 year ago

4.7.52

1 year ago

4.7.51

1 year ago

4.7.50

1 year ago

4.7.49

1 year ago

4.7.48

1 year ago

4.7.47

1 year ago

4.7.46

1 year ago

4.7.45

1 year ago

4.7.44

1 year ago

4.7.43

1 year ago

4.7.42

1 year ago

4.7.41

1 year ago

4.7.40

1 year ago

4.7.39

1 year ago

3.7.39

1 year ago

3.6.39

1 year ago

3.6.38

1 year ago

3.6.37

1 year ago

3.6.36

1 year ago

3.6.35

1 year ago

3.6.34

1 year ago

3.6.33

1 year ago

3.6.32

1 year ago

3.6.31

1 year ago

3.6.30

1 year ago

3.6.29

1 year ago

3.6.28

1 year ago

3.5.28

1 year ago

3.5.27

1 year ago

3.5.26

1 year ago

2.5.26

1 year ago

2.5.25

1 year ago

2.5.24

1 year ago

2.5.23

1 year ago

2.5.22

1 year ago

2.5.21

1 year ago

2.4.21

1 year ago

2.4.20

1 year ago

2.4.19

1 year ago

2.4.18

1 year ago

2.4.17

1 year ago

2.4.16

1 year ago

2.4.15

1 year ago

2.4.14

1 year ago

2.4.13

1 year ago

2.4.12

1 year ago

2.3.12

1 year ago

1.3.12

1 year ago

1.3.11

1 year ago

1.3.10

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.1.7

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