Socket
Socket
Sign inDemoInstall

kyt-utils

Package Overview
Dependencies
0
Maintainers
7
Versions
248
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    kyt-utils

A shared kyt utility library.


Version published
Weekly downloads
6.2K
decreased by-9.24%
Maintainers
7
Install size
20.7 kB
Created
Weekly downloads
 

Readme

Source

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

FAQs

Last updated on 30 May 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc