
Product
Rust Support in Socket Is Now Generally Available
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.
grunt-matter
Advanced tools
Add, extend, sort or strip YAML front matter. Also has options for populating randomized mock data. This plugin is especially useful for creating test or example templates.

Add, extend, sort or strip YAML front matter. Also has options for populating randomized mock data. This plugin is especially useful for creating test or example templates.
This plugin is useful for adding or extending YAML front matter in general, but it was created to make it easier to create and update templates for tests and boilerplates.
In your project's Gruntfile, add a section named matter to the data object passed into grunt.initConfig().
grunt.initConfig({
matter: {
options: {
// Task-specific options go here.
},
target: {
// Target-specific file lists and/or options go here.
}
}
})
Type: Object
Default value: undefined
Extend YAML front matter with given properties. Example:
Type: Object
Default value: undefined
Extend YAML front matter with generated random data, based on a defined template model. See datafixture.js for the full list of options.
Type: Boolean
Default value: false
Alphabetically sort the properties in the specified YAML front matter.
Type: Boolean
Default value: false
Strip all YAML front matter from the given pages.
Extend YAML front matter in the given pages with any number of custom properties.
grunt.initConfig({
matter: {
options: {
props: {
foo: 'One',
bar: 'Two',
someObj: {
baz: 'Lorem'
}
}
},
files: {}
}
});
grunt.initConfig({
matter: {
options: {
mock: {
"lorem": "lorem"
values: "0...100:2",
names: ["Ian",2, 10.4, true, "Andros"],
complex: {
PO:"20000...30000",
country: ["Mexico", "Canada", "US"]
}
}
},
files: {}
}
});
Copyright (c) 2013 Jon Schlinkert, contributors. Released under the MIT license
This file was generated on Mon Sep 02 2013 09:44:51.
FAQs
Add, extend, sort or strip YAML front matter. Also has options for populating randomized mock data. This plugin is especially useful for creating test or example templates.
We found that grunt-matter 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.

Product
Socket’s Rust and Cargo support is now generally available, providing dependency analysis and supply chain visibility for Rust projects.

Security News
Chrome 144 introduces the Temporal API, a modern approach to date and time handling designed to fix long-standing issues with JavaScript’s Date object.

Research
Five coordinated Chrome extensions enable session hijacking and block security controls across enterprise HR and ERP platforms.