
Security News
Python Adopts Standard Lock File Format for Reproducible Installs
Python has adopted a standardized lock file format to improve reproducibility, security, and tool interoperability across the packaging ecosystem.
metalsmith-slug
Advanced tools
Add a slug property to the metadata for targeted files in your Metalsmith, based on a particular property. Useful for generating links to pages based on, say, their title.
npm install metalsmith-slug
If you're not familiar with Metalsmith, check it out. It's a very versatile file processor that can be used for static site generation, project scaffolding and more.
Add metalsmith-slug
to your metalsmith.json
.
{
"plugins": {
"metalsmith-slug": {}
}
}
Add metalsmith-slug
to your project and .use()
it.
var slug = require('metalsmith-slug');
metalsmith.use(slug());
patterns [array]: Glob patters of files to match. Uses minimatch.
metalsmith.use(slug({
patterns: ['*.md', '*.rst'] // Deafults to metalsmith.source() directory
}));
property 'string': Property to generate the slug from.
metalsmith.use(slug({
property: 'name' // Defaults to 'title'
}));
slug options: You can additionally use any of the options available to node-slug
metalsmith.use(slug({
replacement: '_', // Defaults to node-slug defaults
symbols: false
}));
FAQs
slugify a property in metalsmith
The npm package metalsmith-slug receives a total of 37 weekly downloads. As such, metalsmith-slug popularity was classified as not popular.
We found that metalsmith-slug 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
Python has adopted a standardized lock file format to improve reproducibility, security, and tool interoperability across the packaging ecosystem.
Security News
OpenGrep has restored fingerprint and metavariable support in JSON and SARIF outputs, making static analysis more effective for CI/CD security automation.
Security News
Security experts warn that recent classification changes obscure the true scope of the NVD backlog as CVE volume hits all-time highs.