
Security News
Browserslist-rs Gets Major Refactor, Cutting Binary Size by Over 1MB
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
@basichelpers/date
Advanced tools
```bash import { dateFormat, stringtoDate } from '@basichelpers/date'
npm install @basichelpers/date
import { dateFormat } from '@basichelpers/date'
/**
* @returns {string} '2000/12/31'
*/
dateFormat(new Date('2000-12-31'), 'YYYY/MM/DD')
import { stringtoDate } from '@basichelpers/date'
/**
* @returns {date} Sun Dec 31 2000 09:00:00 GMT+0900 (日本標準時)
*/
stringtoDate('2000/12/31', '/')
/**
* @returns {date} Sun Dec 31 2000 12:30:00 GMT+0900 (日本標準時)
*/
stringtoDate('2000-12-31', '-', '12:30')
import { featureCheck } from '@basichelpers/date'
/**
* 与えられた日付が将来のものかを判定する関数
* falseが返ってきたら将来ではない
* @param {string} date '2021/12/31'
* @returns {boolean} false
*/
featureCheck('2020/12/31')
import { getYoubi } from '@basichelpers/date'
/**
* 与えられた日付から対象の日付の曜日を返す関数
* @param {string} date '2021/12/31'
* @returns {string} 木
*/
getYoubi('2020/12/31')
FAQs
```bash import { dateFormat, stringtoDate } from '@basichelpers/date'
We found that @basichelpers/date 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
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.
Security News
The official Go SDK for the Model Context Protocol is in development, with a stable, production-ready release expected by August 2025.