Current collected state Current
Observed since 20 Oct, 19:46 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A sample npm package with a service worker.
This package provides a service worker implementation that can be used in web applications to manage caching and network requests.
To install the package, use npm:
npm install my-npm-package
To use the service worker in your project, register it in your main JavaScript file:
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/path-to-your-service-worker.js')
.then((registration) => {
console.log('Service Worker registered with scope:', registration.scope);
})
.catch((error) => {
console.error('Service Worker registration failed:', error);
});
}
Make sure to replace /path-to-your-service-worker.js with the actual path to the service worker file.
This project is licensed under the MIT License. See the LICENSE file for details.
Download counts and popularity will appear here as the collector receives them.
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:46 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:a5cdcff6a7854b1750f42982dc7583e1ebf461cd4aea15b2c892339c277ed321