New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

create-notifier

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

create-notifier

Lightweight notifier implementation

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

create-notifier

Lightweight notifier implementation.

Notifier is a source, that you can subscribe to its update events, but it doesn't propagate any values.

Install

npm install create-notifier

createNotifier

import { createNotifier } from "create-notifier";

const notifier = createNotifier();
// It tracks age and increase it with every `notify` call
notifier.getAge(); // 0
// We can subscribe, to get notified
const unsubscribe = notifier.subscribe(() =>
  console.log("This is subscription")
);

notifier.notify();
// Logs 'This is subscription'
notifier.getAge(); // 1

FAQs

Package last updated on 21 Feb 2020

Did you know?

Socket

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.

Install

Related posts