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.
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.
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.
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.