
Security News
Vite+ Joins the Push to Consolidate JavaScript Tooling
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
@cyca/electron-sirv
Advanced tools
Static file serving for Electron apps.
See https://raw.githubusercontent.com/sindresorhus/electron-serve with changes that uses https://github.com/lukeed/sirv for resolving and serving files.
Uses the new electron.protocol handlers, and serves files with correct content-types.
See above links for api documentation. Options from both libraries are combined.
import {app, BrowserWindow} from 'electron';
import {serve} from '@cyca/electron-sirv';
const loadURL = serve({directory: 'renderer'});
let mainWindow;
(async () => {
await app.whenReady();
mainWindow = new BrowserWindow();
await loadURL(mainWindow);
// Or optionally with search parameters.
await loadURL(mainWindow, {id: 4, foo: 'bar'});
// The above is equivalent to this:
await mainWindow.loadURL('app://-');
// The `-` is just the required hostname
})();
FAQs
Static file serving for Electron apps
The npm package @cyca/electron-sirv receives a total of 0 weekly downloads. As such, @cyca/electron-sirv popularity was classified as not popular.
We found that @cyca/electron-sirv demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Evan You announces Vite+, a commercial, Rust-powered toolchain built on the Vite ecosystem to unify JavaScript development and fund open source.
Security News
Ruby Central’s incident report on the RubyGems.org access dispute sparks backlash from former maintainers and renewed debate over project governance.
Research
/Security News
Socket researchers uncover how threat actors weaponize Discord across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.