Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
android-versions
Advanced tools
Get the name, API level, version level, or version code from any version of Android.
A node module to get Android versions by API level, semantic version, or version name.
Versions are referenced from source.android.com/docs/setup/reference/build-numbers. The version for "Current Development Build" ("CUR_DEVELOPMENT"
) is not included in the list of VERSIONS
.
Release dates are referenced from https://en.wikipedia.org/wiki/Android_version_history.
# NPM
npm install android-versions --save
# YARN
yarn add android-versions
View the tests for more advanced usage.
const android = require('android-versions')
console.log(android.get(23))
=> { api: 23, semver: "6.0", name: "Marshmallow", versionCode: "M" }
console.log(android.get("2.3.3"))
=> { api: 10, semver: "2.3.3", name: "Gingerbread", versionCode: "GINGERBREAD_MR1" }
android.getAll((version) => {
return version.api >= 12 && version.api < 15
}).map((version) => version.versionCode)
=> [ "HONEYCOMB_MR1", "HONEYCOMB_MR2", "ICE_CREAM_SANDWICH" ]
android.LOLLIPOP
=> { api: 21, semver: "5.0", name: "Lollipop", versionCode: "LOLLIPOP" }
android.VERSIONS
=> {
BASE: { api: 1, semver: "1.0", name: "(no code name)", versionCode: "BASE", releaseDate: "23 Sep 2008" },
...
N: { api: 24, semver: "7.0", name: "Nougat", versionCode: "N", releaseDate: "22 Aug 2016" }
...
}
npm run test
MIT
FAQs
Get the name, API level, version level, or version code from any version of Android.
The npm package android-versions receives a total of 38,295 weekly downloads. As such, android-versions popularity was classified as popular.
We found that android-versions demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.