![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
@kmdavis/carmen
Advanced tools
What in the world is en-US-sandiego?
Carmen.js is, in a nutshell, a RFC-4646 & RFC-5646 parser. In other words, Carmen will parse strings like "en-US-sandiego" and tell you that it refers to the english language, in the United States, specifically, the variant spoken in San Diego.
npm install @kmdavis/carmen
import carmen from "@kmdavis/carmen";
carmen("en-US");
will return
{
text: "en-US",
language: "en",
region: "US",
}
and
carmen("sl-Latn-IT-nedis");
will return
{
text: "sl-Latn-IT-nedis",
language: "sl",
script: "Latn'"
region: "IT",
variants: ["nedis"],
}
The full list of fields that Carmen can return is:
{
text: String,
language: String,
extlangs: [String],
script: String,
region: String,
variants: [String],
extensions: Object,
private: [String],
grandfather: String
}
Please note that the "text" field is Not the original string that is passed in. This string is reconstructed from the parsed values; as such, any minor formatting errors (such as the common Internet Exploder bug where en-US becomes en_US) will be normalized.
npm install
npm test
Kevan Davis kevan.davis@me.com
Distributed under the MIT license.
https://github.com/kmdavis/carmen
git checkout -b feature/fooBar
)git commit -am 'Add some fooBar'
)git push origin feature/fooBar
)FAQs
What in the world is en-US-sandiego?
The npm package @kmdavis/carmen receives a total of 2 weekly downloads. As such, @kmdavis/carmen popularity was classified as not popular.
We found that @kmdavis/carmen 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.