Catalog npm
Back to packageRELEASE DETAILS

1.0.0

npm

3in1-package

A brief description of my package.

npm-packageservice-worker
Published18 Dec 2024
Direct dependencies1
Transitive dependenciesNot calculated

README

Current package documentation

My NPM Package

This package provides a service worker implementation that can be used in web applications to manage caching and network requests.

Installation

To install the package, use npm:

npm install my-npm-package

Usage

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.

API

Public Methods

  • methodName: Description of the method and its usage.

License

This project is licensed under the MIT License. See the LICENSE file for details.

Downloads & popularity

Awaiting observations

No metric observations yet

Download counts and popularity will appear here as the collector receives them.

Declared dependencies 1

Native requirements
1 direct targetsNot calculated transitive count
Package / targetRequirementRelationship
typescript
Environment
{
  "local_name": "typescript",
  "alias": false,
  "peer_metadata": null
}
^4.0.0development

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "shasum": "0dd7822ea9d92f50b8b2236c1a2b533ca6923d9f",
  "tarball": "https://registry.npmjs.org/3in1-package/-/3in1-package-1.0.0.tgz",
  "fileCount": 5,
  "integrity": "sha512-Zvm+1HPBJOhjFBmZ43zAFiuYJDwN6qoaQK4mqCdDqXM1i2H4B9RVphu1bCIy7Y7mLjvFZUqLT7vIqgjO7tQSPg==",
  "signatures": [
    {
      "sig": "MEQCIAd2KlrVgTbY2P5dYQp4MIb1qrTpBUpzTkba6+WpETCAAiAp3lGBjs4/RUnseOEVyMUTW9xkdARcECrp8UZL0OET3Q==",
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"
    }
  ],
  "unpackedSize": 1682
}

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 19:46 UTC

No superseded metadata states collected. Unchanged observations do not create new revisions.

Record identity

package_version:c62fa47dfdf4ed80094c51577cb23dfd540f94b29b1aaf94bdcd1db86d28aaed

Other collected versions

1.4.019 Dec1.2.019 Dec1.1.018 DecView all collected versions →