New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

time-now-custom-element

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

time-now-custom-element

Show updated current time in an html element. Date and time will automatically refresh every second.

  • 0.0.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

time-now-custom-element

Open Source Love license js-semistandard-style package version install size dependecies

🕐 Show updated current time in an html element. Date and time will automatically refresh every second.

Demo available here.

Install

Available via npm: npm i time-now-custom-element

Usage

Install via npm or include the now-element.js in your html page and simply add <x-time-now></x-time-now> element. format propery is optional with following rules:

  • Y: year number (example: 2018)
  • M: month number (example: 09)
  • B: month name (example: September)
  • D: day number (example: 2)
  • C: day name (example: Tuesday)
  • h: hours number (example: 23)
  • m: minutes number (example: 55)
  • s: seconds number (example:12)

Default format: Y-M-D h:m:s which yields: 2018-09-07-Sunday 01:42:34

License

MIT.

Keywords

FAQs

Package last updated on 09 Oct 2018

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc