Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dmail/assert

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dmail/assert

[![npm package](https://img.shields.io/npm/v/@dmail/assert.svg)](https://www.npmjs.com/package/@dmail/assert) [![build](https://travis-ci.com/dmail/assert.svg?branch=master)](http://travis-ci.com/dmail/assert) [![codecov](https://codecov.io/gh/dmail/asser

  • 3.3.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
33
increased by450%
Maintainers
1
Weekly downloads
 
Created
Source

assert

npm package build codecov

compare actual and expected, if they differ throw an error

Example

import { assert } from "@dmail/assert"

const actual = { foo: true }
const expected = { foo: false }
assert({
  actual,
  expected,
})

Terminal output screenshot:

terminal output screenshot

You can also check test/ folder for more examples

Installing

Not supported: Made only for my usage for now.

Licensing

MIT

FAQs

Package last updated on 15 May 2019

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