
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@daviddarnes/duration-property
Advanced tools
A Web Component to surface an audio or video's duration as a CSS Custom Property
duration-property
A Web Component to surface an audio or video's duration as a CSS Custom Property.
<script type="module" src="duration-property.js"></script>
<duration-property>
<audio controls src="https://darn.es/sounds/daviddarnes.m4a"></audio>
</duration-property>
This Web Component allows you to:
--duration
)--duration
custom property if the duration of the source changesYou have a few options (choose one of these):
npm install @daviddarnes/duration-property
Make sure you include the <script>
in your project (choose one of these):
<!-- Host yourself -->
<script type="module" src="duration-property.js"></script>
<!-- 3rd party CDN, not recommended for production use -->
<script type="module" src="https://www.unpkg.com/@daviddarnes/duration-property@1.0.0/duration-property.js"></script>
<!-- 3rd party CDN, not recommended for production use -->
<script type="module" src="https://esm.sh/@daviddarnes/duration-property@1.0.0"></script>
With thanks to the following people:
FAQs
A Web Component to surface an audio or video's duration as a CSS Custom Property
The npm package @daviddarnes/duration-property receives a total of 0 weekly downloads. As such, @daviddarnes/duration-property popularity was classified as not popular.
We found that @daviddarnes/duration-property 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.
Security News
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.