# svg-sprite This file is part of the documentation of *svg-sprite* — a free low-level Node.js module that **takes a bunch of SVG files**, optimizes them and creates **SVG sprites** of several types. The package is [hosted on GitHub](https://github.com/svg-sprite/svg-sprite). ## Meta data injection By providing a simple [YAML](https://yaml.org/) file via the `shape.meta` configuration property, you can **inject titles and descriptions** into your SVG files before they get compiled as a sprite. Doing so may improve the accessibility of your SVGs. Please see the articles by [The Paciello Group](https://www.tpgi.com/using-aria-enhance-svg-accessibility/) and [Jonathan Neal](https://github.com/jonathantneal/svg4everybody#readability-and-accessibility) on how to use your SVG sprites in a most accessible way. ### File structure The YAML file needs to look like this: ```yaml "path/to/rectangle.svg": title: "Green rectangle" description: "A light green rectangle with rounded corners and a dark green border" path--to--circle: title: "Red circle" description: "A red circle with a black border" ``` The keys need to match either * the **"local" file path part** of the SVG files you [register to the spriter](api.md#svgspriteraddfile--name-svg-) or * the final **shape IDs / CSS class names** as returned by the `id.generator` function. ### SVG results For each of your shapes, *svg-sprite* will look for `title` and `description` keys and inject their values like this: ```xml ``` Please be aware that existing `