
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.
trell-story-json-to-amp
Advanced tools
Compile story-json documents into AMP stories.
Not all features of the story-json
format are supported at the moment. Open an issue if you need something that isn't supported yet. PRs are always welcome!
import story from './story.json';
import storyJsonToAmp from 'story-json-to-amp';
const ampHtml = storyJsonToAmp(story);
In addition to standard story-json
properties, a few special optional properties can be added to the document:
Name | Description |
---|---|
preview.publisher | REQUIRED. The name of the story's publisher. |
preview.publisherLogoSrc | REQUIRED. The publisher's logo in square format (1x1 aspect ratio). |
preview.posterPortraitSrc | REQUIRED. The story poster in portrait format (3x4 aspect ratio). |
preview.posterSquareSrc | The story poster in square format (1x1 aspect ratio). |
preview.posterLandscapeSrc | The story poster in landscape format (4x3 aspect ratio). |
customCss | Extra CSS to append to AMP story document. This is useful for adding fonts or making AMP-specific customizations. |
analytics | Array of AMP analytics objects |
bookendConfigSrc | Bookend endpoint URL |
Here's an AMP story generated by this module:
https://mic.com/stories/327/what-happens-in-your-brain-when-you-listen-to-music
MIT
FAQs
Convert story JSON to STAMP HTML.
The npm package trell-story-json-to-amp receives a total of 0 weekly downloads. As such, trell-story-json-to-amp popularity was classified as not popular.
We found that trell-story-json-to-amp 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.
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.