Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
windows-iana
Advanced tools
This library exports two functions to help convert from Windows time zones to IANA time zones (based on this mapping definition).
Add the dependency to your project with npm install --save windows-iana
or yarn add windows-iana
.
The library exports findIana()
, which will return an array of possible IANA time zones, or findOneIana()
, which will return just one string.
findOneIana()
import { findOneIana } from "windows-iana";
const result = findOneIana("Romance Standard Time")
console.log(result); // "Europe/Paris"
You may also pass the territory code as a second parameter (have a look again at the mapping by unicode.org for more details).
import { findOneIana } from "windows-iana";
const result = findOneIana("Romance Standard Time", "ES")
console.log(result); // "Europe/Madrid"
findIana()
import { findIana } from "windows-iana";
const result = findIana("Romance Standard Time")
console.log(result); // ["Europe/Paris"]
You may also pass the territory code to findIana()
.
import { findIana } from "windows-iana";
const result = findIana("Romance Standard Time", "ES")
console.log(result); // ["Europe/Madrid", "Africa/Ceuta"]
FAQs
A small tool to convert between Windows time zones and IANA
The npm package windows-iana receives a total of 30,603 weekly downloads. As such, windows-iana popularity was classified as popular.
We found that windows-iana 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.