New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

asserture

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asserture

extends assert of node

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Asserture

Github Releases (by Release) npm

extends assert of node 扩展node原生的Assert功能

Usage 用法

Usage for English is Coming soon...

Start 开始使用

1. 引入

使用nodejs

$ npm install --save assert
const assert = require('asserture');
  • 说明:asserture中已经包含原生assert的全部功能,不需要再额外引入assert

扩展功能

1. isTure(expected, [message])

assert.isTure(true); //ok

2. isStrictTrue(expected, [message])

3. isFalse(expected, [message])

4. isStrictFalse(expected, [message])

5. isNaN(expected, [message])

6. isStrictNaN(expected, [message])

Change list 更新日志

v1.0.0

初始化项目

More docs and examples, to be continue... 更多接口文档的案例,未完待补充...

Keywords

assert

FAQs

Package last updated on 16 Mar 2017

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