🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

checko

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

checko

A composable and predictable predicate and assertion library

latest
Source
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

Sometimes simplicity is key. I find that to be the case for assertion libraries as well. There are tonnes of them out there and most of them come with all kinds of crazy features and implementations. These make it relatively difficult to understand what exactly is being tested, how to use the library to create your own assertions and to compose new predicates and assertions out of the existing ones.

The predicates and assertions in checko

  • have predictable names,
  • have simple implementations,
  • and can be composed.

Documentation

Documentation for 1.0.1 can be found here.

Contributing

Here is some information in case you would like to contribute to this project.

Organization

The source code for this package lives in the root of the repository. The package is built to the release/ directory which is ignored by git. The package.json along with some other files are also built to the release/ directory. This architecture allows us to have code at the root of the repository even if we are transpiling it. Having code at the root means we can include it like so

import aBitOfFunctionality from 'my-package/aBitOfFunctionality'

// versus

import aBitOfFunctionality from 'my-package/lib/aBitOfFunctionality'

Cloning

git clone <repo_url> <repo_folder>
cd <repo_folder>
npm install
npm run setup

Publishing

To publish a new version of this package you need to update its version, build it and publish it. This procedure is usually done with the following commands.

npm version (major|minor|patch)
cd release/
npm publish

FAQs

Package last updated on 19 Sep 2016

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