
Security News
Deno 2.6 + Socket: Supply Chain Defense In Your CLI
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.
There is a new sherrif in town to check your values for type and range errors! :police_car:
I needed predicates and assertions for type and range checking that:
npm install checko
Import any of the exported predicates and assertions and simply use them.
const expectArray = require('checko/exports/expectArray')
// or
const expectArray = require('checko').expectArray
// or
import expectArray from 'checko/exports/expectArray'
// or
import { expectArray } from 'checko'
expectArray('this is not an array')
Tip: This package publishes source maps. Use source-map-support to utilize them during development to get clearer stack traces.
For some 'expect' variants there is no 'is' variant because the language itself provides an operator.
| Predicate | Assertion |
|---|---|
| value === expected | expectEqual(expected, value) |
| isArray(value) | expectArray(value) |
All files in exports/ can be directly included. Implementations for each predicate and assertion can be found there. Examples are shown in the accompanying .test.js.
Due to the simple nature of this package (except for the isDeepEqual(expected, value) implementation) there is no further documentation. If this is a problem, please let me know.
FAQs
A composable and predictable predicate and assertion library
The npm package checko receives a total of 2 weekly downloads. As such, checko popularity was classified as not popular.
We found that checko demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

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.

Security News
Deno 2.6 introduces deno audit with a new --socket flag that plugs directly into Socket to bring supply chain security checks into the Deno CLI.

Security News
New DoS and source code exposure bugs in React Server Components and Next.js: what’s affected and how to update safely.

Security News
Socket CEO Feross Aboukhadijeh joins Software Engineering Daily to discuss modern software supply chain attacks and rising AI-driven security risks.