Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
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 2 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.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.