
Product
Introducing Pull Request Stories to Help Security Teams Track Supply Chain Risks
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
@sapphire-cms/codegen
Advanced tools
Sapphire CMS module that renders content as importable code.
The Codegen module enables Sapphire CMS to transform content into code that can be directly integrated into your application.
sapphire-cms package install codegen
or
scms pkg i codegen
render
The render layer includes the following renderers:
typescript
- Transforms content into TypeScript code.yaml
- Renders documents as YAML files.Transforms content into Typescript code.
Example:
# pipelines/clients-to-ts.yaml
name: clients-to-ts
source: clients
target: '@node'
render: '@codegen/typescript'
In the example above, the pipeline transforms documents of type clients
into TypeScript code
and stores the result on the local filesystem using the Node runtime.
Transforms content into YAML files.
Example:
# pipelines/clients-to-yaml.yaml
name: clients-to-yaml
source: clients
target: '@node'
render: '@codegen/yaml'
In the example above, the pipeline transforms documents of type clients
into YAML files
and stores them on the local filesystem using the Node runtime.
FAQs
Sapphire CMS module that renders content as importable code.
We found that @sapphire-cms/codegen demonstrated a healthy version release cadence and project activity because the last version was released less than 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.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.