Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
dateformater-tc
Advanced tools
帮助你把日期格式化为想要的中文格式
使用的是所有对于 原生 Date
对象合法的参数
MM
, dd
, HH
, mm
, ss
, qq
: 当生成的输出是一位数的时候,会加入前置的0,例如,2
=>02
,反之M
, d
, H
, m
, s
, q
则不会
yyyy
:返回四位数的年份,yy
返回年份的后两位
import dateFormater from 'dateformater-tc'
(dateFormater()).format('yyyy年MM月dd日 HH时mm分ss秒.S 第qq季度 第D天 F')
// 2016年06月09日 16时34分43秒.601 第02季度 第161天 星期四
(dateFormater(2016,1,1)).format('yyyy年MM月dd日 HH时mm分ss秒.S 第qq季度 第D天 F')
// "2016年02月01日 00时00分00秒.0 第01季度 第32天 星期一"
FAQs
We found that dateformater-tc demonstrated a not healthy version release cadence and project activity because the last version was released 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.