</>PackageGraphPackageGraph

assert-plus

npmv1.0.0

Extra assertions on top of node's assert module

Not recommended for new projects

No — assert-plus should not be adopted for new projects. Last published 3829 days ago.

  • ?Adoption: grade ?, Not reported by this registry.

    No download data reported for this package yet.

  • FMaintenance: grade F, Failing.

    Last published 3829 days ago.

  • AWeight: grade A, Excellent.

    Zero runtime dependencies.

  • ASupply chain: grade A, Excellent.

    No install scripts, 2 maintainers, and a contained dependency surface.

  • ALicense: grade A, Excellent.

    MIT — permissive, with no copyleft found in the dependency tree.

Grades are computed deterministically from registry metadata collected by PackageGraph — downloads, dependents, publish dates, the resolved dependency tree, maintainer count, and declared licenses. No third-party scores are used.

Install cost

What you actually take on by adding assert-plus to a project.

0
Direct dependencies

Runtime packages this one declares itself.

0
Total installed

Distinct packages in the full runtime tree, deduplicated the way a package manager would.

Install size

Unpacked size of this package plus its entire runtime tree.

Tree depth

Longest resolved dependency chain below this package.

Compatibility

Node.js
node >=0.8
Module format
CommonJS only
TypeScript
No bundled types
Install scripts
None

Quick start

A usage example from the assert-plus README.

javascriptFull README ↗
    var assert = require('assert-plus');

    function fooAccount(options, callback) {
        assert.object(options, 'options');
        assert.number(options.id, 'options.id');
        assert.bool(options.isManager, 'options.isManager');
        assert.string(options.name, 'options.name');
        assert.arrayOfString(options.email, 'options.email');
        assert.func(callback, 'callback');

        // Do stuff
        callback(null, {});
    }

Dependencies

Declared by assert-plus v1.0.0. Runtime dependencies are installed with the package; dev dependencies are not.

Dev (2)

faucet 0.0.1tape 4.2.2

Used by

Popular packages that depend on assert-plus.

Relationship graph

Dependencies (left) and dependents (right) of assert-plus.

http-signaturejsprimsshpkassert-plus
assert-plus dependencies dependents

Frequently installed together

Release history

No releases in the last two years, typically about 80 days apart.

Recent versions of assert-plus
VersionPublishedSizeLicense
1.0.0latest10 years agoMIT
0.2.010 years agoMIT
0.1.512 years agoMIT
0.1.413 years agoMIT
0.1.313 years agoMIT
0.1.214 years agoMIT
0.1.114 years agoMIT
0.1.014 years agoMIT

Overview

assert-plus is an npm package that extra assertions on top of node's assert module. It has 1 known dependents in the graph. The latest version is 1.0.0, released under the MIT license.

Who should use it

Teams working in the npm ecosystem who need extra assertions on top of node's assert module and value a focused solution.

When not to use it

Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.

Pros

  • Clear open-source license (MIT).
  • Lean dependency tree (2 direct dependencies).

Cons

  • No bundled TypeScript types (may require a separate @types package).

Auto-generated from collected registry metadata. No external claims are inferred.

Maintainers

Frequently asked questions

Should I use assert-plus?

No — assert-plus should not be adopted for new projects. Last published 3829 days ago.

How do I install assert-plus?

Run `npm install assert-plus` to add assert-plus to your npm project.

What license is assert-plus released under?

assert-plus is distributed under the MIT license.

How popular is assert-plus?

npm does not publish download counts. Within PackageGraph's crawl, 1 known packages depend on assert-plus.

Is assert-plus still maintained?

The most recent release of assert-plus (v1.0.0) was published 10 years ago.

Does assert-plus run install scripts?

No. assert-plus does not define preinstall, install, or postinstall scripts, so installing it does not execute publisher-supplied code.