
Security News
The Nightmare Before Deployment
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.
adhere-core
Advanced tools
var post = {
title: 'My Summer Adventures',
tags: [ 'summer', 'warm', 'luxury' ]
};
// Create a contract.
var validator = adhere({
// The title will be coerced into a string.
title: coerceString,
// The tags property is expected to be an array. Each item is coerced into a string and expected to be a tag.
tags: adhere.compose.each([coerceString, expectTag])
});
// A function that tests if a given string is considered a tag.
function expectTag(string) {
if (!/[a-z]+/.test(string)) throw Exception('Invalid tag.')
return string
}
// A function that will always output a string.
function coerceString(value) {
return '' + value
}
Can be used in browser. Useful for when you are creating an API.
FAQs
Make objects adhere to a specification
The npm package adhere-core receives a total of 0 weekly downloads. As such, adhere-core popularity was classified as not popular.
We found that adhere-core 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
Season’s greetings from Socket, and here’s to a calm end of year: clean dependencies, boring pipelines, no surprises.

Research
/Security News
Impostor NuGet package Tracer.Fody.NLog typosquats Tracer.Fody and its author, using homoglyph tricks, and exfiltrates Stratis wallet JSON/passwords to a Russian IP address.

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.