Website/node_modules/metalsmith-paths
2015-12-03 19:57:30 -05:00
..
lib Importing assets 2015-12-03 19:57:30 -05:00
LICENSE Importing assets 2015-12-03 19:57:30 -05:00
package.json Importing assets 2015-12-03 19:57:30 -05:00
README.md Importing assets 2015-12-03 19:57:30 -05:00

Metalsmith Paths version License

A Metalsmith plugin that adds file path values (base, dir, ext, name, href) to metadata path property.

Build Status Downloads Code Climate Coverage Status Dependencies

Install

npm install --save metalsmith-paths

API

var Metalsmith = require('metalsmith')
var paths = require('metalsmith-paths')

var metalsmith = new Metalsmith(__dirname)
  .use(paths({
    property: "paths"
  }))

CLI

You can also use the plugin with the Metalsmith CLI by adding a key to your metalsmith.json file:

{
  "plugins": {
    "metalsmith-paths": {
      "property": "paths"
    }
  }
}

Options

name description default
property property to store the path data to path

Support

Donations are welcome to help support the continuous development of this project.

Gratipay PayPal Flattr Bitcoin

License

MIT © Ahmad Nassri