Registry / devops / popeye-util

popeye-util

JSON →
library0.3.0jsnpmunverified

A collection of utility functions for the Popeye project, version 0.3.0. This package provides shared helpers used across Popeye components. It is a legacy package with infrequent updates. Differentiators: tightly coupled to Popeye ecosystem, not intended for general use.

npm install popeye-util
INSTALL
IMPORT
SIG · POPEYE-UTIL
P
popeye-util
devopsjavascriptv0.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

popeyeUtil
import { popeyeUtil } from 'popeye-util';
import popeyeUtil from 'popeye-util';
ESM-only; default export is the object, but named export is preferred.
someFn
import { someFn } from 'popeye-util';
const someFn = require('popeye-util').someFn;
CJS require works but is not recommended in new code.
type SomeType
import type { SomeType } from 'popeye-util';
TypeScript type imports supported since version 0.2.0.

Shows basic usage of two utility functions from the package with ESM import and environment variable handling.

import { someFn, anotherFn } from 'popeye-util'; // Example: using someFn const result = someFn('hello'); console.log(result); // Example: using anotherFn const config = { key: process.env.KEY ?? '' }; const output = anotherFn(config); console.log(output);
Debug
Known issues
breakingsomeFn removed in 0.3.0; use replacementFn instead.
fix
Replace calls to someFn with replacementFn.
affects: >=0.3.0
deprecatedlegacyFn is deprecated and will be removed in 1.0.0.
fix
Use alternativeFn from the same package.
affects: <1.0.0
gotchaFunctions expect PopeyeContext object; passing plain objects causes runtime errors.
fix
Always pass a valid PopeyeContext instance.
affects: *
Errors
Common errors & fixes
TypeError: someFn is not a function
Importing the package as default instead of named import.
fix
Use 'import { someFn } from 'popeye-util';'
Cannot find module 'popeye-util'
Package not installed or not in node_modules.
fix
Run 'npm install popeye-util'
Upgrade
Version history
0.3.0latest on npm
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
popeye-util — npm install popeye-util · libregistry