Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
node-red-contrib-dayjs
Advanced tools
Under development
A simple Node-RED node that integrates the versatile JavaScript library Day.js, offering an alternative to Moment.js.
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 node-red-contrib-dayjs
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.
The operation to perform is specified via the msg.operation
property, which supports the following options:
Specify the unit of time using the msg.unit
property, which can take the values:
The amount of time to manipulate is provided via the msg.amount property.
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')).
[0.1.1] - 2024-04-03
FAQs
Wrapper of dayjs for Node-RED
The npm package node-red-contrib-dayjs receives a total of 2 weekly downloads. As such, node-red-contrib-dayjs popularity was classified as not popular.
We found that node-red-contrib-dayjs demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.