580,758 packages matching “if-present”
strip-hex-prefix
v1.0.0 · 9 years ago
A simple method that will strip a valid hex prefix off a string, if present.
No known vulnerabilities
console
v0.7.2 · 8 years ago
Returns `console` if present, otherwise returns a `noop`.
No known vulnerabilities
setTimeout
v0.4.9 · 15 years ago
returns `setTimeout` if present
No known vulnerabilities
arpscan-new
v1.4.1 · 7 years ago
returns `arpscan` if present
No known vulnerabilities
karma-junit-xray-reporter
v1.2.9 · 5 years ago
A Karma plugin. Report results in junit xml format with XRay Id(if present)
No known vulnerabilities
di-singleton
v1.0.5 · 1 year ago
Wraps a class constructor to ensure only one instance is created, using lazy initialization and optionally calling an init method if present, while maintaining type safety via TypeScript generics.
No known vulnerabilities
@advdominion/get-scrollbar-width
v2.0.1 · 7 months ago
Get window scrollbar width (if present):
No known vulnerabilities
photo-metadata-replicate
v1.0.0 · 15 days ago
Replicate metadata from one source item onto a set of targets: union list fields, fill in scalar fields if present, never clobber.
No known vulnerabilities
@htmlbricks/hb-input-range
v0.76.5 · 3 months ago
Range slider (`type="range"`). Optional `params` as `InputRangeParams`: `min` / `max` may be numbers or numeric strings; each key is applied only if present on `params` (same `hasOwnProperty` pattern as number input). Coerces values for validation and nat
No known vulnerabilities
native-promisify-if-present
v1.0.1 · 11 years ago
Return a promise from a callback-as-last-argument function using native a Promise, but only if native Promises exist.
No known vulnerabilities
yarn-plugin-if-present
v0.1.0 · 2 years ago
Plugin that adds support for the --if-present option for Yarn berry
No known vulnerabilities
@cdr0/include
v1.0.4 · 5 years ago
Like require, but gets from sibling directory if present.
No known vulnerabilities
letenv
v0.2.0 · 10 years ago
Loads environment variables from `.env` if present.
No known vulnerabilities
hermes-parser
v0.37.0 · 1 month ago
A JavaScript parser built from the Hermes engine
No known vulnerabilities
preferred-pm
v5.0.0 · 5 months ago
Detects what package manager was used for installation
No known vulnerabilities
setInterval
v0.4.9 · 15 years ago
returns `setInterval` if present
No known vulnerabilities
cipher-base
v1.0.7 · 10 months ago
abstract base class for crypto-streams
No known vulnerabilities
copy-json-file-merged
v0.2.1 · 8 years ago
Copies source JSON file and merges its contents with destination JSON file if present.
No known vulnerabilities
load-mocks
v1.0.1 · 8 years ago
Monkey patch the _load function from require to load a mock, if present.
No known vulnerabilities
clearTimeout
v0.4.9 · 15 years ago
returns `clearTimeout` if present
No known vulnerabilities