
Security News
CISA Extends MITRE Contract as Crisis Accelerates Alternative CVE Coordination Efforts
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.
countries-codes
Advanced tools
Comprehensive data on countries, languages, and continents, including:
You can install the package using npm, yarn, or pnpm.
pnpm add countries-codes
yarn install countries-codes
npm install countries-codes
import { textSimilarity } from "countries-codes";
const similarity1 = textSimilarity("hello world", "hello", 2); // Default parameters (substring length: 2, case insensitive)
console.log(similarity1);
const similarity2 = textSimilarity("JavaScript", "javascript", 2, true); // Comparison is case-sensitive and the strings differ in case
console.log(similarity2);
const similarity3 = textSimilarity("apple pie", "apple", 3); // Substring length of 3, ignoring case by default
console.log(similarity3);
This directory contains simplified data for each list,
converting Object
with fields to Array
with fields in predefined order to decrease the file size (and traffic).
Example: {"UA":"UKR"}
Example: {"UKR":"UA"}
Example: {"UA":"🇺🇦"}
Example: {"UA":"Ukraine"}
Example: {"UA":"Україна"}
Example: {"uk":"Ukrainian"}
Example: {"uk":"Українська"}
Bundle your TypeScript library with no config, powered by esbuild.
# pnpm
$ pnpm install
# yarn
$ yarn install
# npm
$ npm install
src
src/index.ts
src
.
Once the command works properly, you will see dist
folder.# pnpm
$ pnpm run build
# yarn
$ yarn run build
# npm
$ npm run build
$ npm publish
FAQs
Comprehensive data on countries, languages, and continents.
The npm package countries-codes receives a total of 0 weekly downloads. As such, countries-codes popularity was classified as not popular.
We found that countries-codes demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 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
CISA extended MITRE’s CVE contract by 11 months, avoiding a shutdown but leaving long-term governance and coordination issues unresolved.
Product
Socket's Rubygems ecosystem support is moving from beta to GA, featuring enhanced security scanning to detect supply chain threats beyond traditional CVEs in your Ruby dependencies.
Research
The Socket Research Team investigates a malicious npm package that appears to be an Advcash integration but triggers a reverse shell during payment success, targeting servers handling transactions.