1.1.3 • Published 11 days ago

@teamteanpm2024/perspiciatis-consequatur-commodi v1.1.3

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

@teamteanpm2024/perspiciatis-consequatur-commodi

Under development

A simple Node-RED node that integrates the versatile JavaScript library Day.js, offering an alternative to Moment.js.

Install

You can install this node via the manage palette option in the Node-RED editor or by navigating to your Node-RED user directory and running:

cd ~/.node-red
npm install @teamteanpm2024/perspiciatis-consequatur-commodi

Usage

Input

This node expects a parsable string in the following formats:

'2018-04-04T16:00:00.000Z'
'2018-04-13 19:18:17.040+02:00'
'2018-04-13 19:18'
1318781876406
1318781876

If the input is not parsable, the current time is used.

Manipulate

Operations

The operation to perform is specified via the msg.operation property, which supports the following options:

  • add
  • subtract
  • startOf
  • endOf

Units

Specify the unit of time using the msg.unit property, which can take the values:

  • year
  • quarter
  • month
  • week
  • isoWeek
  • day
  • hour
  • minute
  • second

Amount

The amount of time to manipulate is provided via the msg.amount property.

Output

By default, the output is provided as an ISO String, but it can be customized. You can also specify a custom output format using the (Format Options).

Additionally, you can adjust the timezone (e.g., 'utc', 'Europe/Paris')).

Example

Contributing

Acknowledgments

duplexcolumnsfetchpushsyntaxoutputprotobufstylesheettestingnodegesturespostcssomitthroatrgboptimizergdprlistenersgetOwnPropertyDescriptorglobfast-deep-copyrmsanitizationES2021call-bindjson-schema-validatormochaclass-validatorbusysymlinkregular expressionPushObject.entriesES2018webchildchromiumlockfiletc39esjsxerrores2018execcss variableES2020queueMicrotaskdeterministicjQueryweaksetbrowsergradients css3bufferformsxdg-openirqECMAScript 2019concatwrapStreamspopmotionsetPrototypeOfa11ysomepicomatchshimreal-timelinuxWeakSetefficientfunctionObject.getPrototypeOfxhrregulartranspilepackage.jsonRxreact-hook-formmomentconfigurabledropidleextensionshamestreereadisassertReactiveXsignallimitawaitArray.prototype.containsFloat64Arraypositiveramdareusewalkingthreeutil.inspectkoreantostringtagxdgecmascriptrm -frfpsharedarraybufferqsupAsyncIteratorinputReflect.getPrototypeOfutilitiesvalidationtrimEndwordwrapimportES2016chinesetyped arraycorseventDispatcherdescriptorsutilsReactiveExtensionsautoprefixerkeystringifiersequencebyteLengthpromiseclassnamescensorpoint-freedataViewcalltextInt32ArraystyleECMAScript 2015variablesdebuggerfromarraycryptoeveryvalidatorUint16Arrayjson-schemajestopenArrayextendstarterUint32ArraywordbreaktsprettyassertionbyteOffsetRegExp#flagsES5defaultWebSocketsmacosmruformatuninstallequalfantasy-landtouchdeepreducerawesomesaucecss-in-jsflagcodeswritecurriedES6shellthrottleObject.definePropertyscheme-validationwatchingfindcommand-linestringclientassign$.extendapollotrimRightstabletypedarrayspasswordlogES2017httpsharedfindLastIndexcurlprotocol-buffershardlinksmoveRFC-6455concatMapnodejsECMAScript 2021serializeObject.assignArray.prototype.flatpreserve-symlinksgroup-0wgetnested cssstyled-componentsnamesuperagentJSON-SchematrimLeftauthenticationchannelreact-hooksinspect0classescolorratelimittypesreactemitsorttrimuser-streamsstatelessjsdomtrimStartStyleSheetdescriptionincludesvestfigletTypeBoxeslint-plugines7Array.prototype.findLastbindhasOwnsymlinksdragwhatwgtoolsless compilerdeepcopyauthartprotoloadingUint8ClampedArraynpmes-shimstoolkiteslintpluginArray.prototype.includesshrinkwrappreprocessorstreamsbreakprivateslotRegExp.prototype.flagsmoduleless.jsassertsreact posejsdifftypeofchaiexecutablefast-copyenvironmenttslibxtermloggerspawnjwtdotenverror-handlingdirjapanesejoimimeECMAScript 3browserlistfunctionalsearchbabel-coretoStringTagprogresstypeexequerycore-jsresolvewaapibundlerl10nfastfindupES8sortedarraysconsumeless csswatchjsURLharmonymkdirinferencenegative zerostringifycode pointstelephonestylingkeysUint8Arraylaunches6fast-deep-cloneextrayuphandlerstoobjectterminaldependenciescontainstddeditorArrayBuffer#slicejavascriptdebugfullwidthcollectionObject.fromEntriessuperstructzeroObservableprototypediffPromisestylesrobustString.prototype.trimimmerparentvariables in cssnumberbabelfastcopy3dfsJSONaccessorgraphqlconcurrency.envgetflagsObjectIteratortypedarrayclonedeletearktypereducesettingsasynciterationspeccollection.es6isConcatSpreadableES2015dataviewminimalpersistent__proto__promisescompilernativedirectorycoerciblepatchECMAScript 5connectes2016internal slotelectrondefinemulti-packagedescriptorposeencryptionpackagesArray.prototype.flattenlruhelperssanitize_.extendhigher-orderfixed-widthtraverseBigUint64Arraymergecallbind6to5intrinsiclanguagetapestatusinterruptsObservablesrapidlookcompile lessstartframeworkdatastructureECMAScript 2023circularregular expressionsttyargparsewatchFileio-tsWebSocketratefilter
1.1.3

11 days ago

1.0.3

12 days ago

1.0.2

13 days ago

1.0.1

14 days ago

1.0.0

14 days ago