Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.