
Security News
Vite Releases Technical Preview of Rolldown-Vite, a Rust-Based Bundler
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
@ilihub/week
Advanced tools
TypeScript functions for converting day to other time units.
# if you're using pnpm
pnpm add @ilihub/week
# or, if you're using npm
npm install @ilihub/week
# or, if you're using yarn
yarn add @ilihub/week
import { Week } from "@ilihub/week";
const week = new Week(1);
const milliseconds = week.toMillisecond();
console.log(milliseconds); // 604800000
const seconds = week.toSecond();
console.log(seconds); // 604800
const minutes = week.toMinute();
console.log(minutes); // 10080
const hours = week.toHour();
console.log(hours); // 168
const days = week.toDay();
console.log(days); // 7
const months = week.toMonth();
console.log(months); // 0.25
const years = week.toYear();
console.log(years); // 0.019230769230769232
const decades = week.toDecade();
console.log(decades); // 0.0019230769230769232
const centuries = week.toCentury();
console.log(centuries); // 0.00019230769230769232
Support the development of new open-source projects from ilihub through crowdfunding.
The core of ilihub is our crowd-funded open-source projects, licensed under the permissive MIT license. Sponsorship increases the rate of bug fixes, documentation improvements, and feature development.
FAQs
TypeScript functions for converting week to other time units.
The npm package @ilihub/week receives a total of 0 weekly downloads. As such, @ilihub/week popularity was classified as not popular.
We found that @ilihub/week 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
Vite releases Rolldown-Vite, a Rust-based bundler preview offering faster builds and lower memory usage as a drop-in replacement for Vite.
Research
Security News
A malicious npm typosquat uses remote commands to silently delete entire project directories after a single mistyped install.
Research
Security News
Malicious PyPI package semantic-types steals Solana private keys via transitive dependency installs using monkey patching and blockchain exfiltration.