Socket
Book a DemoInstallSign in
Socket

@svta/cml-iso-8601

Package Overview
Dependencies
Maintainers
0
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@svta/cml-iso-8601

ISO 8601 date/time handling functionality

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
0
Created
Source

@svta/cml-iso-8601

ISO 8601 date/time handling functionality.

Installation

npm i @svta/cml-iso-8601

Usage

import {
	decodeIso8601Duration,
	encodeIso8601Duration,
} from "@svta/cml-iso-8601";

// Encode duration
const encoded = encodeIso8601Duration(3661);
// encoded === 'PT1H1M1S'

// Decode duration
const decoded = decodeIso8601Duration("PT1H1M1S");
// decoded === 3661

Keywords

Common Media Library

FAQs

Package last updated on 22 Dec 2025

Did you know?

Socket

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.

Install

Related posts