
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
@customerio/devices
Advanced tools
Devices util methods to map device model to it's corresponding marketing name
Utility to map device models to marketing friendly device name. The android list is pretty huge, and we've decided to cater to the most popular brands based on market share. If you need a device that isn't in the list, please open an issue or a PR.
npm i --save @customerio/devices
import { getMarketingName } from '@customerio/devices';
console.log(getMarketingName('iPhone14,2'));
Output:
iPhone 13 Pro
Simple golang script fetches data from https://storage.googleapis.com/play_public/supported_devices.html and generates json file.
cd scripts/android
go run main.go
TODO
Size Limit controls the size. Small Libraries
$ npm run build && npm run size
✔ Adding to empty webpack project
✔ Running JS in headless Chrome
Time limit: 3 s
Size: 90.16 kB with all dependencies, minified and gzipped
Loading time: 1.8 s on slow 3G
Running time: 266 ms on Snapdragon 410
Total time: 2.1 s
FAQs
Devices util methods to map device model to it's corresponding marketing name
We found that @customerio/devices 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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.