Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
marked-imgix
Advanced tools
marked / imgix renderer to generate imgix urls.
npm i --save marked-imgix
import markedimgix from 'marked-imgix'
import marked from 'marked'
const renderer = new marked.Renderer()
renderer.image = markedImgix({
host: 'my-namespace.imgix.net'
secureURLToken: 'cU7USDTYcSYXm54wCAFP4CCeYGWERH4s'
})
marked(
'![image alt](images/cat.jpg "image title { w: 400, h: 300, fit: \'crop\'}")',
{ renderer }
)
// <img src="https://my-namespace.imgix.net/images/cat.jpg?w=400&h=300&fit=crop&ixlib=js-1.0.6&s=bc64e917bf149a05f6924405c879487e0" alt="image alt"> "image title"
The example above shows a problem you run into if trying to declare strings in js. The escaped quotes will work fine in this case.
In a markdown file, you can just use single quotes for string parameters.
dist/index.js
should be fully compatible with node 6
Levi Wheatcroft levi@wht.cr
Contributions welcome; Please submit all pull requests against the master branch.
FAQs
marked renderer to generate imgix urls
The npm package marked-imgix receives a total of 1 weekly downloads. As such, marked-imgix popularity was classified as not popular.
We found that marked-imgix 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
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.