Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
@nodesecure/licenses-conformance
Advanced tools
Readme
NodeSecure SPDX licenses conformance. Project forked/inspired from cutenode/conformance.
This package is available in the Node Package Repository and can be easily installed with npm or yarn.
This repository is inspired by cutenode/conformance
$ npm i @nodesecure/licenses-conformance
# or
$ yarn add @nodesecure/licenses-conformance
import { licenseIdConformance } from "@nodesecure/licenses-conformance";
const result = licenseIdConformance("MIT");
if (result.ok) {
console.log(result.value);
}
/*
{
uniqueLicenseIds: ["MIT"],
spdxLicenseLinks: ["https://spdx.org/licenses/MIT.html#licenseText"],
spdx: {
osi: true,
fsf: true,
fsfAndOsi: true,
includesDeprecated: false
}
}
*/
interface spdxLicenseConformance {
uniqueLicenseIds: string[];
spdxLicenseLinks: string[];
spdx?: {
osi: boolean;
fsf: boolean;
fsfAndOsi: boolean;
includesDeprecated: boolean;
};
}
function licenseIdConformance(
licenseID: string
): { ok: true, value: spdxLicenseConformance } | { ok: false, value: Error };
function searchSpdxLicenseId(contentStr: string): string | null;
To update the src/spdx.json
file just run the following npm script:
$ npm run spdx:refresh
It will fetch SPDX licenses here.
Thanks goes to these wonderful people (emoji key):
Vincent Dhennin 💻 🐛 📖 | Gentilhomme 💻 👀 🛡️ | Kouadio Fabrice Nguessan 🚧 |
MIT
FAQs
Check spdx license expressions
We found that @nodesecure/licenses-conformance demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers 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
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).