4.9.66 • Published 11 months ago

@dramaorg/laborum-deleniti v4.9.66

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

Jitter Time!

npm js-standard-style

jitter time

Generates random time periods (in milliseconds) between a max and min around the given minutes value. For example this can be used to ensure 5 minute poll requests across multiple clients don't all happen at once.

Install

$ npm install --save @dramaorg/laborum-deleniti

Usage

var jitterTime = require('@dramaorg/laborum-deleniti')

var POLL_INTERVAL = jitterTime(5, 0.2)
//=> 290110 (Random number between 240000 and 360000)

setInterval(syncDataWithServer, POLL_INTERVAL)

API

jitterTime(minutes, jitter)

minutes

  • Type: number
  • Default: 1

Number of minutes to jitter around.

jitter

  • Type: number
  • Default: 0.1

Percentage of jitter (for setting max and min). E.g. 1 = +/-100%, 0.1 = +/-10%, etc.

Contributing

Build

npm run build

Test

npm test

Watch

To watch for changes, build them and run the tests:

npm run watch

License

MIT © Vend Ltd.

lruweaksetstreamsdependency managerdescriptorSymbolsliceperformantparenttoolscore-jscolorssource maphttpquerystringglobvarRegExp.prototype.flagsespreepolyfillfromspinnersreversedjsvalidationbinariestextdependenciesUint16ArraywebcryptoReactiveExtensionsredactserializecloudsearchtransforminspectkinesismanagerdebuggermetadataframeworkglobal objectieurlcloudfrontES6touchperformancees-shimsdeepcopynamepicomatchWebSocketspecECMAScriptstyleramdasafeform-validationMaprouteObjectparsepinodomES5cloudwatchamazonequalitymomentexecuteomit@@toStringTagArraytapeWeakMapentriesbabelpurecacheclassesnamesautoprefixerboundbytees-abstractgitignoretype__proto__descriptionrangeerrorhasOwnstyled-componentsrm -frthreees2015snsArray.prototype.containsbundlinglook-uphasOwnPropertyclassnamesio-tsURLSearchParamsfast-copyreduxawsfindLastIndexdirfnmatchresolvebddidschemareadsuperstructECMAScript 2019matchcloudtrailpackage managermapBigUint64Arrayapipatch$.extendjQueryECMAScript 3byteOffsetexpressionistoArraychaiprefixESinvestreadableasciixtermajaxlocationchildeventDispatchertyped arrayspeedpyyamlchannelReactiveXObject.definePropertypropeslintconfigoptimistcoloreslintpluginnativefastclonekoreanqsrdsbusynpmvalidatetypescriptasyncdeep-clonefastifydefinetoReversedtoStringTagargumentArray.prototype.findLastcallbind.envECMAScript 2021tddarraysECMAScript 2023optimizerhasclientpackage.jsongetoptlocalclass-validatorspinnergraphqlString.prototype.matchAllassertionguidparentsenumerablepostcss-pluginemrfunction.lengthdynamodbcall-bindworkerhigher-ordertestzeroHyBicommand-lineparserrobustterminalestreefileproxycurlmodulesreact animationArrayBuffer.prototype.slicedeepstylesArray.prototype.includessyntaxemoji[[Prototype]]Iteratorpathpromiseinternala11yuninstallbabel-coreemitminimalimporttestingMicrosoftwarningindicatorlibphonenumbermanipulationconsolecoercibleformArray.prototype.flattenlinklastprotocol-buffersBigInt64ArrayslotjoiPromisestringmochahelperspropertydeepclonetransportmruStyleSheetuser-streamsworkspace:*utilitiesfindupextendbundlerrouterObject.keysinstallserializerArray.prototype.flatMapexecforkimmutablecontainsfile systemeslintupredirecteffect-tsiteratorshambeanstalkidleagentES2015extrazodlookvariablescolournpmignoreUnderscoreargvarktypeansireuseexpressmovegetterglobalThisArray.prototype.filterES2022enderinstrumentationtapintrinsicwindowassignmatchAllgesturesincludestypedremoveTypeBoxcss-in-jswgetes5reducecodesjasmineconstes2018ignorehookswhatwgES2019telephonegetrestfulbuffersnodejsuuidonceinvariantrmdayjsjsdomFloat32Arrayutil.inspectcloudformationmapreducejsxttyaccessorECMAScript 5chromiumcoveragefunctionspoint-freeruntimetypedarraysES2016chinesenumbersortspawnArrayBufferdescriptorsObject.assignstyleguidewalkes6efficientfind-upprivatefstypeofmoduleimmerhas-ownCSSrulesnodetostringtagpluginstylinginstallerregular expressionisConcatSpreadablenegative zeroeventsflattentrimRightInt8ArraywaitelbdefinePropertyformatArray.prototype.findLastIndexistanbulfast-deep-copystarterES3genericshtmlfigletES2018Object.getPrototypeOfdeletedragpropertieseventEmittercallbackcollection.es6progressdotenvESnextsetterfullglobalstc39httpsmergeInt16Arrayenvappsortedobjletsuperagentshrinkwrapreversefp3darraycharacterhookformassert_.extendrapidenvironmentvalidatorredux-toolkitcircularbinsomeformattingconcattraverseacornECMAScript 2020endpointutilgetPrototypeOfpositivefetchpnpm9tslibeslint-pluginzxcallboundregular expressionsschemesqscensortypesafeloadingsideautoscalingselfcopyxhrURLstringifierpopmotionflags-0optionatomjson-schema-validationvpccloneflagebsharmonydebugesjshintbrowserslistreact poselengthtaketypanionwritablejsonschemaelasticacheaccessibilitycommandfastcopyes2017visuales2016JSON-SchemaES2020toSortedmkdirsreactreadablestreamlanguageregexinputTypedArrayjson-schemajsonquerycompilerrmdirrgbbanneres7ec2internal slotdom-testing-librarycalltrimLeftshebangtrimStartbindrfc4122xmlartavaiamcssFloat64Arrayapollojson-schema-validatorajvprotobufES2021listenersloggerObject.entriesdirectoryjeststructuredClonedeep-copymonorepotypesstreamelectronpushes-shim API.gitignoreprotoReflect.getPrototypeOfprettyECMAScript 2022airbnbfantasy-land0flatMapl10ncall-boundregularroutingfilterObject.fromEntriesUint8ArrayES7asteriskscjkSymbol.toStringTagtoolkitdatefoldertypedarrayECMAScript 2018react-hooksshell
4.9.66

11 months ago

4.9.65

11 months ago

4.9.64

11 months ago

4.9.63

11 months ago

4.9.62

12 months ago

4.9.61

12 months ago

4.9.60

12 months ago

4.9.59

12 months ago

4.9.58

12 months ago

4.9.57

12 months ago

4.9.56

12 months ago

4.9.55

12 months ago

4.9.54

12 months ago

4.9.53

12 months ago

4.9.52

12 months ago

4.9.51

12 months ago

4.9.50

12 months ago

4.9.49

12 months ago

4.8.49

12 months ago

4.7.49

12 months ago

4.7.48

12 months ago

4.7.47

12 months ago

4.7.46

12 months ago

4.7.45

12 months ago

4.6.45

1 year ago

4.6.44

1 year ago

4.6.43

1 year ago

4.5.43

1 year ago

4.5.42

1 year ago

3.5.42

1 year ago

3.4.42

1 year ago

3.4.41

1 year ago

3.4.40

1 year ago

3.4.39

1 year ago

3.4.38

1 year ago

3.4.37

1 year ago

3.4.36

1 year ago

3.4.35

1 year ago

2.4.35

1 year ago

2.4.34

1 year ago

2.4.33

1 year ago

2.4.32

1 year ago

2.4.31

1 year ago

2.4.30

1 year ago

2.4.29

1 year ago

2.4.28

1 year ago

2.4.27

1 year ago

2.4.26

1 year ago

2.3.26

1 year ago

2.3.25

1 year ago

2.3.24

1 year ago

2.3.23

1 year ago

2.3.22

1 year ago

2.3.21

1 year ago

2.3.20

1 year ago

2.3.19

1 year ago

2.3.18

1 year ago

2.3.17

1 year ago

2.3.16

1 year ago

2.3.15

1 year ago

2.3.14

1 year ago

2.3.13

1 year ago

2.2.13

1 year ago

2.1.13

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