🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

fallout-utility

Package Overview
Dependencies
Maintainers
1
Versions
86
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fallout-utility

fallout-utility

2.9.1
latest
Source
npm
Version published
Weekly downloads
167
108.75%
Maintainers
1
Weekly downloads
 
Created
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

fallout

FAQs

Package last updated on 29 May 2024

Did you know?

Socket

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