
Product
Introducing Rust Support in Socket
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
compress-opening-times
Advanced tools
Compress the schedule of the opening times of a store, office, &c.
Compress weekly opening time schedules.
var ot = require('compress-opening-times')
Serialize a list of pairs of opening and start times, where time is the number of minutes since midnight.
ot.serializeWeek([
[ 9 * 60, 17 * 60],
[ 9 * 60, 17 * 60],
[ 9 * 60, 17 * 60],
[ 9 * 60, 17 * 60],
[ 9 * 60, 17 * 60],
[12 * 60, 17 * 60],
null // closed
])
// 'ġ$%Ś%ŕ'
Parse the resulting "ġ$%Ś%ŕ" to return the original list.
ot.parseWeek('ġ$%Ś%ŕ')
// [ [ 540, 1020 ],
// [ 540, 1020 ],
// [ 540, 1020 ],
// [ 540, 1020 ],
// [ 540, 1020 ],
// [ 720, 1020 ],
// null ]
FAQs
Compress the schedule of the opening times of a store, office, &c.
The npm package compress-opening-times receives a total of 0 weekly downloads. As such, compress-opening-times popularity was classified as not popular.
We found that compress-opening-times 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.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.