Gathering detailed insights and metrics for minibase-assert
Gathering detailed insights and metrics for minibase-assert
Gathering detailed insights and metrics for minibase-assert
Gathering detailed insights and metrics for minibase-assert
Plugin for MiniBase and Base, that adds assertion methods - most of `assert-kindof` methods and built-ins `assert` module.
npm install minibase-assert
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
2 Stars
19 Commits
1 Watchers
9 Branches
2 Contributors
Updated on Sep 13, 2022
Latest Version
1.0.2
Package Id
minibase-assert@1.0.2
Size
5.02 kB
NPM Version
4.0.1
Node Version
7.0.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Plugin for minibase and base, that adds assertion methods - most of assert-kindof methods and built-ins assert module.
You might also be interested in is-kindof.
(TOC generated by verb using markdown-toc)
Install with npm
$ npm install minibase-assert --save
or install using yarn
$ yarn add minibase-assert
For more use-cases see the tests. Includes all of the assert-kindof methods and all of the core
assert
's methods.
1const minibaseAssert = require('minibase-assert') 2const MiniBase = require('minibase').MiniBase 3const app = new MiniBase() 4 5app.use(minibaseAssert()) 6 7app.assert.object(null) // => throws AsserionError: null !== object 8app.assert.object(123) // => throws AsserionError: number !== object 9app.assert.object([1, 2, 3]) // => throws AsserionError: array !== object 10app.assert.array(123) // => throws AsserionError: number !== array 11 12app.assert.array([1, 2, 3]) // => does not throws 13app.assert.number(123) // => does not throws 14app.assert.object({ a: 'b' }) // => does not throws
Hint: Use app.assert.is
if you want type checking and need to return true/false values without throwing AssertionError, because it is based on is-kindof which in turn uses kind-of behind the scenes!
.define
method to be more better. | homepageisRegistered
method to your application to detect if plugin is already registered and returns true or false if… more | homepage.visit
method to your application to visit a method over the items in an object, or map visit… more | homepagePull requests and stars are always welcome. For bugs and feature requests, please create an issue.
Please read the contributing guidelines for advice on opening issues, pull requests, and coding standards.
In short: If you want to contribute to that project, please follow these things
npm run commit
to commit changes instead of git commit
, because it is interactive and user-friendly. It uses commitizen behind the scenes, which follows Conventional Changelog idealogy.npm run release
, which is standard-version and follows Conventional Changelog idealogy.Thanks a lot! :)
Documentation and that readme is generated using verb-generate-readme, which is a verb generator, so you need to install both of them and then run verb
command like that
$ npm install verbose/verb#dev verb-generate-readme --global && verb
Please don't edit the README directly. Any changes to the readme must be made in .verb.md.
Clone repository and run the following in that cloned directory
$ npm install && npm test
Charlike Mike Reagent
Copyright © 2016, Charlike Mike Reagent. Released under the MIT license.
This file was generated by verb-generate-readme, v0.2.0, on November 17, 2016.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 3/19 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
70 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More