# kyt-utils

> A shared kyt utility library.

Latest version **1.3.34** (published 2024-05-30) · Apache-2.0 license · 0 weekly downloads

## Install

```sh
npm install kyt-utils
pnpm add kyt-utils
yarn add kyt-utils
bun add kyt-utils
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.3.34 |
| Published | 2024-05-30 |
| First published | 2016-12-09 |
| Weekly downloads | 0 |
| License | Apache-2.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 20.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1912 |
| Author | NYTimes |
| Maintainers | fesebuv, btwood, delambo, caiogondim, wonderboymusic, ccpricenytimes, ctborg |

## Links

- npm: https://www.npmjs.com/package/kyt-utils
- Repository: https://github.com/nytimes/kyt
- Homepage: https://github.com/nytimes/kyt#readme
- Issues: https://github.com/nytimes/kyt/issues
- npm.io page: https://npm.io/package/kyt-utils

## Recent versions

- 1.3.34 (latest) — 2024-05-30
- 1.3.35-next1.11 (next1) — 2025-03-04
- 1.3.35-omega.6 (omega) — 2025-01-22
- 1.3.35-zeta.5 (zeta) — 2025-01-22
- 1.3.35-beta.4 (beta) — 2025-01-22
- 1.3.35-alpha.2 (alpha) — 2025-01-22
- 1.0.0-beta.40.1 (next) — 2020-05-28
- 1.0.0-alpha.15 (pre) — 2020-02-13
- 1.3.35-next1.10 — 2025-02-27
- 1.3.35-next1.8 — 2025-02-13
- 1.3.35-next1.7 — 2025-02-11
- 1.3.35-next1.6 — 2025-02-10
- 1.3.35-next1.5 — 2025-02-10
- 1.3.35-next1.4 — 2025-02-08
- 1.3.35-next1.3 — 2025-02-07
- … 245 more at https://npm.io/package/kyt-utils/versions

## README

# kyt-utils

## Installation

```sh
$ yarn add --dev kyt-utils

// or

$ npm i --save-dev --save-exact kyt-utils
```

This package is for utilities shared across these `kyt` packages:

- `kyt`
- `kyt-runtime`

Ensure that Node 10+ is installed:

```js
require('kyt-utils/checkNodeVersion');
```

Get a [map of paths](paths.js) used to configure `kyt`:

```js
const {
  serverSrcPath,
  serverBuildPath,
  clientAssetsFile,
  loadableAssetsFile,
} = require('kyt-utils/paths')();
```

The default export is a `logger` - a wrapper around `console`:

```js
import logger from 'kyt-utils';

logger.log('message');

// outputs 👍  message
logger.task('message');

// outputs ℹ️  message
logger.info('message');

// outputs 🐞  message
logger.debug('message');

// outputs 🙀  message
logger.warn('message');

// outputs:
// ❌  message
logger.error('message');

// outputs:
// 🔥  message
logger.start('message');

// outputs:
// ✅  message
logger.end('message');
```

---
_Source: https://npm.io/package/kyt-utils · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
