Catalog npm
Back to packageRELEASE DETAILS

0.1.0

npm

@-ft/watch-target

util watchTarget

Published26 Sept 2023
Direct dependencies0
Transitive dependenciesNot calculated

README

Current package documentation

Util - watchTarget

get notified when the watch target value changes

Usage

const a = watchTarget('a');

const cleanup = a.watch((a) => console.log(`a is now '${a}'`));
// console output: a is now 'a'

a.get(); // 'a'

a.set('A');
// console output: a is now 'A'

cleanup();

a.set('X'); // (no more console output)

Downloads & popularity

Awaiting observations

No metric observations yet

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

Declared dependencies 0

Native requirements
0 direct targetsNot calculated transitive count
No declared dependencies in this collected response

Declarations describe requirements; they are not a resolved dependency graph.

Distribution files

1 collected
Distribution 1

Source distribution

Source file
Checksums from source
{
  "integrity": "sha512-P/j4NWfcuFsYsY9QeXmmlzxMogXEnqT7hijLCMMKHJ2UAAe5GX6PJZkj9JsXz40E0xsFqI9MMUSr8Vgj7ebu+A==",
  "shasum": "70a2c0aa91b2aefffd194107de2165d3b5ec68a7",
  "tarball": "https://registry.npmjs.org/@-ft/watch-target/-/watch-target-0.1.0.tgz",
  "fileCount": 4,
  "unpackedSize": 1210,
  "signatures": [
    {
      "keyid": "SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA",
      "sig": "MEQCIDFR3XTEueVfN/tEpbIH/Na3vxfM3ryxsHPKytVe947TAiBfh11VQd9NpxRamEn/jS/bMIhImQJuZUxfsfafN8oMEg=="
    }
  ]
}

Repository

PENDING
42ts/-ft-watch-target

Shared repository data · GitHub

License detected in repository
Not collected

Metadata history

Meaningful changes
Current collected state Current

Observed since 20 Oct, 21:49 UTC

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

Record identity

package_version:70ffc24ebceb156f23a1da6b4c5a4a2bee5e66bf0930643a264df708a30a6982

Other collected versions

0.1.126 SeptView all collected versions →