Gathering detailed insights and metrics for tui-date-picker
Gathering detailed insights and metrics for tui-date-picker
npm install tui-date-picker
Typescript
Module System
Node Version
NPM Version
97.5
Supply Chain
99.6
Quality
75.9
Maintenance
100
Vulnerability
100
License
JavaScript (91.06%)
CSS (5.55%)
TypeScript (3.4%)
Total Downloads
3,381,355
Last Day
3,450
Last Week
17,271
Last Month
88,797
Last Year
998,195
93 Stars
275 Commits
30 Forks
14 Watching
17 Branches
17 Contributors
Minified
Minified + Gzipped
Latest Version
4.3.3
Package Id
tui-date-picker@4.3.3
Unpacked Size
302.52 kB
Size
66.36 kB
File Count
8
NPM Version
6.14.17
Node Version
14.18.1
Cumulative downloads
Total Downloads
Last day
-31%
3,450
Compared to previous day
Last week
-29.5%
17,271
Compared to previous week
Last month
-4.6%
88,797
Compared to previous month
Last year
26.9%
998,195
Compared to previous year
1
21
Component that selects specific date.
TOAST UI DatePicker applies Google Analytics (GA) to collect statistics on the use of open source, in order to identify how widely TOAST UI DatePicker is used throughout the world.
It also serves as important index to determine the future course of projects.
location.hostname
(e.g. > “ui.toast.com") is to be collected and the sole purpose is nothing but to measure statistics on the usage.
To disable GA, use the following usageStatistics
option when creating the instance.
1const options = { 2 ... 3 usageStatistics: false 4} 5const instance = new DatePicker(container, options);
Or, include tui-code-snippet
(v2.2.0 or later) and then immediately write the options as follows:
1tui.usageStatistics = false;
You can also see the older versions of API page on the releases page.
createCalendar
API.createRangePicker
API.More examples can be found on the left sidebar of each example page, and have fun with it.
TOAST UI products can be used by using the package manager or downloading the source directly. However, we highly recommend using the package manager.
TOAST UI products are registered in two package managers, npm and bower. You can conveniently install it using the commands provided by each package manager. When using npm, be sure to use it in the environment Node.js is installed.
1$ npm install --save tui-date-picker # Latest version 2$ npm install --save tui-date-picker@<version> # Specific version
1$ bower install tui-date-picker # Latest version 2$ bower install tui-date-picker#<tag> # Specific version
TOAST UI products are available over a CDN powered by TOAST Cloud.
You can use CDN as below.
1<link rel="stylesheet" href="https://uicdn.toast.com/tui.date-picker/latest/tui-date-picker.css" /> 2<script src="https://uicdn.toast.com/tui.date-picker/latest/tui-date-picker.js"></script>
If you want to use a specific version, use the tag name instead of latest
in the url's path.
The CDN directory has the following structure.
tui.date-picker/
├─ latest
│ ├─ tui-date-picker.css
│ ├─ tui-date-picker.js
│ ├─ tui-date-picker.min.css
│ └─ tui-date-picker.min.js
├─ v4.0.0/
│ ├─ ...
You need to add two elements. One is the container element to display a date picker, and the other is a target element in which a date picker is attached. Also add some elements for applying the css style.
1<div class="tui-datepicker-input tui-datetime-input tui-has-focus"> 2 <input type="text" id="tui-date-picker-target" aria-label="Date-Time" /> 3 <span class="tui-ico-date"></span> 4</div> 5<div id="tui-date-picker-container" style="margin-top: -1px;"></div>
This can be used by creating an instance with the constructor function. To get the constructor function, you should import the module using one of the following ways depending on your environment.
1const DatePicker = tui.DatePicker;
1const DatePicker = require('tui-date-picker'); /* CommonJS */
1import DatePicker from 'tui-date-picker'; /* ES6 */
You can create an instance with options and call various APIs after creating an instance.
1const container = document.getElementById('tui-date-picker-container'); 2const target = document.getElementById('tui-date-picker-target'); 3 4const instance = new DatePicker(container, { 5 input: { 6 element: target 7 }, 8 ... 9}); 10 11instance.getDate();
For more information about the API, please see here.
Chrome | Internet Explorer | Edge | Safari | Firefox |
---|---|---|---|---|
Yes | 8+ | Yes | Yes | Yes |
TOAST UI products are open source, so you can create a pull request(PR) after you fix issues. Run npm scripts and develop yourself with the following process.
Fork develop
branch into your personal repository.
Clone it to local computer. Install node modules.
Before starting development, you should check if there are any errors.
1$ git clone https://github.com/{your-personal-repo}/tui.date-picker.git 2$ cd tui.date-picker 3$ npm install 4$ npm run test
Let's start development! You can see your code reflected as soon as you save the code by running a server. Don't miss adding test cases and then make green rights.
1$ npm run serve 2$ npm run serve:ie8 # Run on Internet Explorer 8
1$ npm run test
Before uploading your PR, run test one last time to check if there are any errors. If it has no errors, commit and then push it!
For more information on PR's steps, please see links in the Contributing section.
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 12/26 approved changesets -- score normalized to 4
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
92 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-01-20
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More