Security News
New Python Packaging Proposal Aims to Solve Phantom Dependency Problem with SBOMs
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
tm-content-generator
Advanced tools
A content generator to be used in conjunction with Pravda
This is a content generator to be used with PRAVDA, which is a GraphQL API that interfaces with the Escenic's WebService.
Below is a non-ES6 example that generates a news article:
'use strict';
var ContentGenerator = require('tm-content-generator').default;
var contentGenerator = new ContentGenerator();
// generate an article with only 1 picture inline relation and 1 html inline relation
var articleMeta = contentGenerator.generateArticle(
{ sectionId: 70, publication: 'mirror' },
{ picture: [1,2,3], html: [4,5] },
{ pictureRel: [], teaserRel: [], inlineRelations: ['picture','html'] },
{ min: 1, max: 1 }
);
Below is an ES6+ example that generates a news article:
import ContentGenerator from 'tm-content-generator';
const contentGenerator = ContentGenerator();
// generate an article with only 1 picture inline relation and 1 html inline relation
const articleMeta = contentGenerator.generateArticle(
{ sectionId: 70, publication: 'mirror' },
{ picture: [1,2,3], html: [4,5] },
{ pictureRel: [], teaserRel: [], inlineRelations: ['picture','html'] },
{ min: 1, max: 1 }
);
FAQs
Content Generator
The npm package tm-content-generator receives a total of 13 weekly downloads. As such, tm-content-generator popularity was classified as not popular.
We found that tm-content-generator demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.
Security News
Socket CEO Feross Aboukhadijeh discusses open source security challenges, including zero-day attacks and supply chain risks, on the Cyber Security Council podcast.
Security News
Research
Socket researchers uncover how threat actors weaponize Out-of-Band Application Security Testing (OAST) techniques across the npm, PyPI, and RubyGems ecosystems to exfiltrate sensitive data.