
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@rosetta/compat
Advanced tools
Rosetta Project's browser compatibility package.
Note: This package is in the development phase. Expect most releases to contain breaking changes.
Using npm:
npm install @rosetta/compat
Using yarn:
yarn add @rosetta/compat
import compat from "@rosetta/compat"
// Each of these will return a BrowserCompatibilityObject
compat.check("./main.css")
compat.check("./main.html")
compat.check("./main.abc", { type: "CSS" })
compat.checkCSS("body { background: red; }")
compat.checkHTML('<input type="button">Hello World!</input>')
compat.check(filename, options?)
Reads the contents of a file and runs either checkCSS or checkHTML depending on the file extension. If file extension cannot be determined, an options object can be passed in.
options {
type: "CSS" | "HTML"
}
compat.checkCSS(input)
Parses the contents on input and returns a BrowserCompatibilityObject dictating the browser versions that can run the css.
compat.checkHTML(input)
Parses the contents on input and returns a BrowserCompatibilityObject dictating the browser versions that can run the html.
BrowserCompatibilityObject
BrowserCompatibilityObject {
desktop: {
chrome: VersionsObject,
firefox: VersionsObject,
ie: VersionsObject,
edge: VersionsObject,
safari: VersionsObject,
opera: VersionsObject
},
mobile: {
chrome: VersionsObject,
firefox: VersionsObject,
safari: VersionsObject,
edge: VersionsObject,
opera: VersionsObject
}
}
VersionsObject {
support: "SUPPORTED" | "PARTIAL SUPPORT" | "NONE" | "UNKNOWN",
start: string | null,
end: string | null
}
FAQs
Rosetta Project's Browser Compatibility Package
We found that @rosetta/compat 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.