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

clock-widget-ts

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

clock-widget-ts

digital clock for ts

  • 0.1.6
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

English | 中文

Introduction

Generate digital clock or dial clock, support time zone, custom style Currently only digital clocks are supported, other types are under development...

Install

Install via NPM/YARN
$ npm install /i clock-widget-ts --save
$ yarn install /i clock-widget-ts --save

API

Object instantiation

import Clock from 'clock-widget-ts'
new Clock(option)

The option object has the following properties

| Parameter | Type | Default | Description | | ----------------- | --------- | --------------- | ----- -------------------------------------------------- ----- | | tz | String | America/New_York | time zone (please refer to https://en.wikipedia.org/wiki/List_of_tz_database_time_zones) | | tick. | Boolean | true | whether to move | | style | String | | custom style, such as color, size, etc. | | type | String | digital | digital pure digital clock, dial dial clock. |

Events

| event name | parameter | description | | ------------------ | :----------------------------- - | ------------------------------------------------ ------------ | | destroy | | destroy instance | |

Example usage

import Clock from 'clock-widget-ts'
let myClock = null
let option = {
   tz: 'America/New_York',
   style: 'color:red;width:50px;'
    //...
}
myClock = new Clock(option)

myClock. destroy()

license

This project is authorized under the license of the Massachusetts Institute of Technology (MIT), for details, please click LICENSE file to view.

Keywords

FAQs

Package last updated on 03 Mar 2023

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