Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
This npm module gives easy access to the prefixes and namespaces of prefix.cc.
Upon installation of this module the latest dump is downloaded from prefix.cc and stored locally.
The dump is only updated when the module is re-installed.
A default dump (data.json
) is available if the download of the dump fails.
let prefixns = require('prefix-ns');
//The following method returns an array of all prefixes.
let allPrefixes = prefixns.getPrefixes();
console.log(allPrefixes);
// --> ['rdf', 'foaf', ...]
//The following method returns the namespace of a given prefix.
//null is returned when the prefix is not found.
let namespace = prefixns.getNamespaceViaPrefix('foaf');
console.log(namespace);
// --> http://xmlns.com/foaf/0.1/
//The following method returns the prefix of a given namespace.
//null is returned when the namespace is not found.
let prefix = prefixns.getPrefixViaNamespace('http://xmlns.com/foaf/0.1/');
console.log(prefix);
// --> foaf
//The following method returns a map where the prefixes are the keys and the namesapces are the values.
let map = prefixns.asMap();
console.log(map.foaf);
// --> http://xmlns.com/foaf/0.1/
MIT
FAQs
Easy access to prefixes and namespaces of prefix.cc.
The npm package prefix-ns receives a total of 279 weekly downloads. As such, prefix-ns popularity was classified as not popular.
We found that prefix-ns 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.