
Security News
Socket Releases Free Certified Patches for Critical vm2 Sandbox Escape
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.
@glry/daily
Advanced tools
Daily comic strip gallery with mobile/touch support.
Intended for daily comic strips and based on the current date. Specify a start date for the earliest comic, and browse through all strips up to current day.
Supports touch gestures (swipe & shake) and the following keyboard shortcuts:
â—€ previous date â–¶ next date R random comic T today's comic
@glry/daily is an extension to @glry/core and requires date-fns.
$ npm install @glry/daily
Place some basic HTML on your page:
<figure id="figure">
<div class="loading">LOADING</div>
<div class="error">STRIP MISSING</div>
<nav class="navigation">
<button class="prev">â—€</button>
<button class="rand">Random</button>
<button class="next">â–¶</button>
<button class="today">Today</button>
<button class="share">Share</button>
</nav>
</figure>
Initialize the gallery with a minimal set of options like this:
import DailyGlry from '@glry/daily';
const dailyGlry = new DailyGlry({
dateMin: new Date(2014, 1, 22),
host: 'http://mycomic.com/archive/',
extension: '.png',
onOutOfRange: () => alert('No more comics until tomorrow.')
});
The only required option is host which should be the base domain and folder of your comics. This will be used to load the daily comic file. The current year and date will be appended to host like this:
http://mycomic.com/archive/2014/20140204.png
The available options and their defaults are as follows:
{
target: '#figure',
host: null,
hashFormat: 'YYYY-MM-DD',
nameFormat: 'YYYY/YYYYMMDD',
extension: '.png',
onOutOfRange: false
}
You can change the filename and hash format with nameFormat/hashFormat using this syntax.
If a date outside the specified range is called, you can call custom logic by passing a function to onOutOfRange.
All the options available in glry can also be used.
If you include the great plugin shake.js, shaking your device will load a random comic same as pressing R.
Just install the plugin and include it:
$ npm install shake.js
import Shake from 'shake.js';
const myShakeEvent = new Shake({
threshold: 15, // optional shake strength threshold
timeout: 1000 // optional, determines the frequency of event generation
});
myShakeEvent.start();
FAQs
Daily comic strip gallery with mobile/touch support.
The npm package @glry/daily receives a total of 0 weekly downloads. As such, @glry/daily popularity was classified as not popular.
We found that @glry/daily 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
A critical vm2 sandbox escape can allow untrusted JavaScript to break isolation and execute commands on the host Node.js process.

Research
Five malicious NuGet packages impersonate Chinese .NET libraries to deploy a stealer targeting browser credentials, crypto wallets, SSH keys, and local files.

Security News
pnpm 11 turns on a 1-day Minimum Release Age and blocks exotic subdeps by default, adding safeguards against fast-moving supply chain attacks.