Socket
Socket
Sign inDemoInstall

power-assert-renderer-succinct

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

power-assert-renderer-succinct

succinct diagram renderer for power-assert context


Version published
Weekly downloads
1.7K
decreased by-20.75%
Maintainers
1
Weekly downloads
 
Created
Source

power-assert

Build Status NPM version License

Produces succinct graph of value in expression.

  assert(a.name === 'bar')
           |
           "foo"

USAGE

var SuccinctRenderer = require('power-assert-renderer-succinct');

options.stringify
typedefault value
functionstringifier module

Function to stringify any target value.

options.maxDepth
typedefault value
number2

Depth of object traversal. If object depth is greater than maxDepth, compound object (IOW, Array or object) will be pruned with # like ["foo",#Array#,#Object#].

options.lineSeparator
typedefault value
string"\n"

Line separator in power assert output.

options.anonymous
typedefault value
string"Object"

Type name to show when target object is created by anonymous constructor.

options.circular
typedefault value
string"#@Circular#"

Name to show when target object is detected as circular structure.

options.widthOf
typedefault value
functionpower-assert-util-string-width

Function to calculate width of string.

options.ambiguousEastAsianCharWidth
typedefault value
number2

Width of 'Ambiguous' characters defined in Unicode Standard Annex #11 EAST ASIAN WIDTH. Configure options.ambiguousEastAsianCharWidth to treat ambiguous east asian character as fullwidth (= 2) or narrow (= 1). Default is 2.

INSTALL

$ npm install --save-dev power-assert-renderer-succinct

AUTHOR

LICENSE

Licensed under the MIT license.

Keywords

FAQs

Package last updated on 12 Jun 2018

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