kyt-utils

1.3.34 • Public • Published

kyt-utils

Installation

$ 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:

require('kyt-utils/checkNodeVersion');

Get a map of paths used to configure kyt:

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

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

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');

Readme

Keywords

none

Package Sidebar

Install

npm i kyt-utils

Weekly Downloads

3,226

Version

1.3.34

License

Apache-2.0

Unpacked Size

21.2 kB

Total Files

16

Last publish

Collaborators

  • fesebuv
  • btwood
  • delambo
  • caiogondim
  • wonderboymusic
  • ccpricenytimes
  • ctborg