
Research
Security News
Malicious PyPI Package Exploits Deezer API for Coordinated Music Piracy
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
@phensley/language-tag
Advanced tools
Implements BCP 47 language tag parsing and construction.
NPM:
npm install --save @phensley/language-tag
Yarn:
yarn add @phensley/language-tag
const IDS = ['en', 'es', 'es-419', 'und-AR', 'und-Hant', 'iw', 'i-klingon'];
for (const id of IDS) {
const tag = parseLanguageTag(id);
console.log(`${tag.compact().padStart(10)} ${tag.expanded()}`);
}
en en-Zzzz-ZZ
es es-Zzzz-ZZ
es-419 es-Zzzz-419
und-AR und-Zzzz-AR
und-Hant und-Hant-ZZ
iw iw-Zzzz-ZZ
tlh tlh-Zzzz-ZZ
const t = new LanguageTag(undefined, 'latn', 'us', 'PoSiX', {
u: ['ca-gregory']
});
console.log(t.expanded());
und-Latn-US-posix-u-ca-gregory
[1.2.2]
The phensley/timezone
package includes a new TZ.zoneMeta
method to return metadata for a timezone. This can be useful for displaying user interfaces for choosing a timezone. The new properties are:
stdoffset
- Current standard offset, in milliseconds.latitude
- Latitude to 6 decimal places, for the timezone's "principal location"longitude
- Latitude to 6 decimal places, for the timezone's "principal location"countries
- List of ISO 3166 2-letter country codes for countries which overlap the timezone.The cldr.Calendars.timeZoneInfo
result TimeZoneInfo
now includes the same properties as TZ.zoneMeta
above, plus the following property:
metazone
Current CLDR metazone for the timezone.FAQs
Parsing and construction of BCP 47 language tags
The npm package @phensley/language-tag receives a total of 3,761 weekly downloads. As such, @phensley/language-tag popularity was classified as popular.
We found that @phensley/language-tag 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.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.
Security News
Newly introduced telemetry in devenv 1.4 sparked a backlash over privacy concerns, leading to the removal of its AI-powered feature after strong community pushback.