Socket
Socket
Sign inDemoInstall

fallout-utility

Package Overview
Dependencies
6
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    fallout-utility

fallout-utility


Version published
Weekly downloads
126
decreased by-37.31%
Maintainers
1
Install size
498 kB
Created
Weekly downloads
 

Readme

Source

fallout-utility


npm i fallout-utility
yarn add fallout-utility
pnpm add fallout-utility

Quick start

CommonJs
const util = require("fallout-utility");
ES Modules
import utils from "fallout-utility";

Logger Usage

import { Logger } from 'fallout-utility/Logger';

const logger = new Logger();

// Log to file
await logger.createFileWriteStream({
    file: './logs/latest.log'
});

// Logs like console.log but also puts content to a file
logger.log('Fallout util');

// Other log methods
logger.warn(`Warning!`); // alias for logger.warning
logger.warning(`Warning!`);

logger.err(`Error!`); // alias for logger.error
logger.error(`Error!`);

logger.debug(`Debug!`); // Logs messages only on debug mode

Keywords

FAQs

Last updated on 29 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