
Research
/Security News
Laravel Lang Compromised with RCE Backdoor Across 700+ Versions
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.
@astro-github-elements/time
Advanced tools
An Astro wrapper for the '@github/time-elements' library for easy to use Date/Time components
@astro-github-elements/timeThis is a astro wrapper for the @github/time-elements library, it does a few things:
Date objects with the datetime prop<LocalTime>: creates it own date object by defaultnpm i @astro-github-elements/time
---
import { LocalTime } from '@astro-github-elements/time';
---
<LocalTime date time/>
Output:
<local-time
datetime="2022-09-19T00:49:24.526Z"
year="numeric"
month="short"
day="numeric"
hour="2-digit"
minute="2-digit"
second="2-digit"
title="Sep 18, 2022, 7:49 PM CDT"
>
Sep 18, 2022 07:49:24 PM
</local-time>
Check out the @github/time-elements API to see how these components work
Below are a few props added by this wrapper component to make the components a little bit easier to use
datetimeType: Date | string
All datetime props now have the ability to use a Date object instead of only string
<LocalTime>datetimeDefault: new Date
If no datetime is defined for a <LocalTime> component it creates its own
dateType: booelan
A formating preset used to easily show a date without having to type out a format, adds the following attributes:
year="numeric"
month="short"
day="numeric"
Example:
<LocalTime date/> // Sep 18, 2022
timeType: booelan
A formatting preset used to easily show a time without having to type out a format, adds the following attributes:
hour="2-digit"
minute="2-digit"
second="2-digit"
Example:
<LocalTime time/> // 07:49:24 PM
<TimeUntil> && <TimeAgo>microType: booelan
Adds the attribute format="micro" to your element, shortens the descriptions to 1m, 1h, 1d, 1y
Example:
<TimeUntil datetime="2023-01-01T00:00:00.000Z"> // 'in 3 months'
<TimeUntil micro datetime="2023-01-01T00:00:00.000Z"> // '104d'
<LocalTime date/> // Sep 18, 2022
<LocalTime time/> // 09:40:34 PM
<LocalTime date time/> // Sep 18, 2022 09:40:34 PM
<RelativeTime datetime="2022-09-17T00:00:00.000Z" /> // 2 days ago
<TimeUntil datetime="2023-01-01T00:00:00.000Z"/> // in 3 months
<TimeUntil micro datetime="2023-01-01T00:00:00.000Z"/> // 104d
<TimeAgo datetime="2020-01-01T00:00:00.000Z"/> // 3 years ago
<TimeAgo micro datetime="2020-01-01T00:00:00.000Z"/> // 3y
Check out the @github/time-elements API for more help
FAQs
An Astro wrapper for the '@github/relative-time-element' package
The npm package @astro-github-elements/time receives a total of 17 weekly downloads. As such, @astro-github-elements/time popularity was classified as not popular.
We found that @astro-github-elements/time 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
Laravel Lang packages were compromised with an RCE backdoor across hundreds of versions, exposing cloud, CI/CD, and developer secrets.

Security News
Socket found a malicious postinstall hook across 700+ GitHub repos, including PHP packages on Packagist and Node.js project repositories.

Security News
Vibe coding at scale is reshaping how packages are created, contributed, and selected across the software supply chain