
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
Light-weight, faster datetime formatter for modern browsers.
lit-date is ...
moment)Template literalsnpm i --save lit-date
# -- OR --
yarn add lit-date
<script src="https://unpkg.com/lit-date"></script>
<script type="module">
import litdate from 'https://unpkg.com/lit-date?module';
</script>
const text = litdate`${'YYYY'}/${'MM'}/${'DD'}`(new Date());
console.log(text);
// i18n
const dayOfWeek = ({ dayOfWeek }) => [...'日月火水木金土'][dayOfWeek];
const format = litdate`${'M'}月${'D'}日${dayOfWeek}曜日`;
console.log(format(new Date()));
See examples.
See benchmarks for more details.
new Date() -> 2000/01/06| Chrome | Firefox |
|---|---|
![]() | ![]() |
new Date() -> 1月6日(木)| Chrome | Firefox |
|---|---|
![]() | ![]() |
| size | gzip | |
|---|---|---|
| tinydate | ||
| time-stamp | ||
| lit-date | ||
| tinytime | ||
| date-format | ||
| dateformat | ||
| formatoid | ||
| fecha | ||
| dayjs | ||
| date-fns | ||
| luxon | ||
| moment |
PRs accepted.
FAQs
Light-weight, faster datetime formatter for modern browsers
The npm package lit-date receives a total of 538 weekly downloads. As such, lit-date popularity was classified as not popular.
We found that lit-date 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
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.