@hawk.so/utils
v1.0.0
Published
Shared utilities for Hawk packages
Readme
@hawk.so/utils
Shared utilities for Hawk packages.
Contents
- hasValue(v) — returns
trueif the value is notundefined, notnull, and not an empty string; otherwisefalse. - TimeMs — enum of time intervals in milliseconds:
Millisecond,Second,Minute,Hour,Day,Week
Installation
yarn add @hawk.so/utilsExample
import { hasValue, TimeMs } from '@hawk.so/utils';
if (hasValue(process.env.API_KEY)) {
// ...
}
const fiveMinutes = 5 * TimeMs.Minute;License
AGPL-3.0
About CodeX
CodeX is a team of digital specialists around the world interested in building high-quality open source products on a global market. We are open for young people who want to constantly improve their skills and grow professionally with experiments in cutting-edge technologies.
| 🌐 | Join 👋 | Twitter | Instagram | | -- | -- | -- | -- | | codex.so | codex.so/join |@codex_team | @codex_team |
