New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@slimio/pretty-stack

Package Overview
Dependencies
Maintainers
5
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@slimio/pretty-stack

Pretty Stack Trace to stdout in TTY

  • 0.4.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
5
decreased by-44.44%
Maintainers
5
Weekly downloads
 
Created
Source

pretty-stack

version Maintenance MIT dep size known vulnerabilities Build Status Greenkeeper badge

Pretty Stack Trace to stdout in TTY. Use clean-stack of sindresorhus under the hood to improve the whole experience.

Requirements

  • Node.js v12 or higher

Getting Started

This package is available in the Node Package Repository and can be easily installed with npm or yarn.

$ npm i @slimio/pretty-stack
# or
$ yarn add @slimio/pretty-stack

Usage example

const prettyStack = require("@slimio/pretty-stack");

const err = new Error("hello world!");
prettyStack(err, true);
// or go with the stack array
prettyStack(err.stack, false);

API

prettyStack(error: Error | string | string[], printFile?: boolean): void

This method can handle many input types. In case the input is a string it will be splitted by \n.

Dependencies

NameRefactoringSecurity RiskUsage
clean-stackMinorLowCleanup Javascript stack-trace
kleurMinorLowThe fastest Node.js library for formatting terminal text with ANSI colors~!

License

MIT

Keywords

FAQs

Package last updated on 11 Apr 2020

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc