static-engine-defaults

6.14.2 • Public • Published

static-engine-defaults

Dependency Status devDependency Status js-standard-style

This is a plugin for static-engine. Reads default properties from a file and then uses object-assign to apply them to the existing objects. It should not overwrite existing properties but should set ones that don't exist. Call it with the path to the file and a converter for the content like JSON.parse.

var engine = require('static-engine')
var defaults = require('static-engine-defaults')
var cson = require('cson-parser')
var pluginA = require('plugin-a')
 
engine([
  pluginA,
  defaults('./content/defaults.cson', cson.parse)
])

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 6.14.2
    0
    • latest

Version History

Package Sidebar

Install

npm i static-engine-defaults

Weekly Downloads

17

Version

6.14.2

License

MIT

Last publish

Collaborators

  • erickmerchant