{"name":"helper-copyright","description":"Template helper for adding a basic, one-line copyright statement, with formatting appropriate for LICENSE/LICENSE-MIT or README templates. Used with Verb, but should work with any Handlebars, Lo-Dash, underscore, or any template engine that allows helper ","version":"1.4.0","homepage":"https://github.com/helpers/helper-copyright","author":{"name":"Jon Schlinkert","url":"https://github.com/jonschlinkert"},"repository":{"type":"git","url":"git://github.com/helpers/helper-copyright.git"},"bugs":{"url":"https://github.com/helpers/helper-copyright/issues"},"license":{"type":"MIT","url":"https://github.com/helpers/helper-copyright/blob/master/LICENSE"},"files":["index.js"],"main":"index.js","engines":{"node":">=0.10.0"},"scripts":{"test":"mocha"},"dependencies":{"markdown-utils":"^0.6.0","merge-deep":"^1.0.1"},"devDependencies":{"handlebars":"^3.0.0","lodash":"^3.2.0","should":"^5.0.0"},"keywords":["assemble","handlebars","helper","lodash","template","verb"],"gitHead":"722ef0f76684db6058ce16fb1b8db5e9c7dfa327","_id":"helper-copyright@1.4.0","_shasum":"5893c929c143fb42fc677b7c5f4f9e8f00109359","_from":".","_npmVersion":"2.5.1","_nodeVersion":"0.12.0","_npmUser":{"name":"jonschlinkert","email":"github@sellside.com"},"maintainers":[{"name":"jonschlinkert","email":"github@sellside.com"}],"dist":{"shasum":"5893c929c143fb42fc677b7c5f4f9e8f00109359","tarball":"http://registry-npm.ywwl.com/helper-copyright/download/helper-copyright-1.4.0.tgz","integrity":"sha512-f/A7sAej1jhe+RpE3zv90vtHzccih0Z/q11GG3d8K1+bZAW1xeuZkysES+Zfpio+9IEHwLhwEXJEGkenF+s2gA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICJ0caT4jdky+VIer1UfEsJj9/8Uxnzruqr6hWuxbrEAAiB15gPCPKPOYeD53Yz2+degX1xaO5Byir9aEXUz+Odtmw=="}],"size":3132,"noattachment":false,"key":"/helper-copyright/-/helper-copyright-1.4.0.tgz"},"directories":{},"readme":"# helper-copyright [![NPM version](https://img.shields.io/npm/v/helper-copyright.svg?style=flat)](https://www.npmjs.com/package/helper-copyright) [![NPM monthly downloads](https://img.shields.io/npm/dm/helper-copyright.svg?style=flat)](https://npmjs.org/package/helper-copyright)  [![NPM total downloads](https://img.shields.io/npm/dt/helper-copyright.svg?style=flat)](https://npmjs.org/package/helper-copyright) [![Linux Build Status](https://img.shields.io/travis/helpers/helper-copyright.svg?style=flat&label=Travis)](https://travis-ci.org/helpers/helper-copyright)\n\n> Template helper for adding a basic, one-line copyright statement, with formatting appropriate for LICENSE/LICENSE-MIT or README templates. Used with Verb, but should work with any Handlebars, Lo-Dash, underscore, or any template engine that allows helper functions to be registered.\n\n## Install\n\nInstall with [npm](https://www.npmjs.com/):\n\n```sh\n$ npm install --save helper-copyright\n```\n\n## Usage\n\n```js\nvar copyright = require('helper-copyright');\nvar handlebars = require('handlebars');\n\n// the top-level export is a function that must be called, so you \n// can optionally pass an options object when registering the helper\nhandlebars.registerHelper('copyright', copyright({linkify: true}));\n```\n\n## Example\n\nAdd a copyright statement, with author and year(s) in effect (verb templates):\n\n```js\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\n//=> Copyright (c) 2017 Jon Schlinkert\n\nCopyright © 2014, 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\n//=> Copyright (c) 2014-2017 Jon Schlinkert\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\n//=> Copyright (c) 2017 [Jon Schlinkert](https://github.com/jonschlinkert)\n```\n\n## Examples\n\n> This should work with any engine, here are a few examples\n\nGiven the following locals:\n\n```js\nvar locals = {author: {name: 'Jon Schlinkert', url: 'https://github.com/jonschlinkert'}};\n```\n\n### [Lo-Dash](https://github.com/jonschlinkert/template)\n\nAs a helper:\n\n```js\n_.template('<%= copyright({author: author}) %>', locals, {\n  imports: {'helper-copyright': require('helper-copyright')}\n});\n//=> Copyright (c) 2017 Jon Schlinkert\n```\n\nAs a mixin:\n\n```js\n_.mixin({'helper-copyright': require('helper-copyright')});\n_.template('<%= copyright({author: author}) %>', locals);\n//=> Copyright (c) 2017 Jon Schlinkert\n```\n\n### [template](https://github.com/jonschlinkert/template)\n\n```js\ntemplate.helper('helper-copyright', require('helper-copyright'));\ntemplate.render('<%= copyright() %>', function(err, content) {\n  console.log(content);\n  //=> Copyright (c) 2017 Jon Schlinkert'\n});\n```\n\n### [assemble](https://github.com/assemble/assemble)\n\n```js\nassemble.helper('helper-copyright', require('helper-copyright'));\nassemble.render('{{copyright this}}', function(err, content) {\n  console.log(content);\n  //=> Copyright (c) 2017 Jon Schlinkert'\n});\n```\n\n### [verb](https://github.com/jonschlinkert/verb)\n\n```js\nverb.helper('helper-copyright', require('helper-copyright'));\nverb.render('Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).', function(err, content) {\n  console.log(content);\n  //=> Copyright (c) 2017 Jon Schlinkert'\n});\n```\n\n### [handlebars](https://github.com/wycats/handlebars.js/)\n\n```js\nvar handlebars = require('handlebars');\nhandlebars.registerHelper('helper-copyright', require('helper-copyright'));\nhandlebars.compile('{{copyright this}}')(locals);\n//=> Copyright (c) 2017 Jon Schlinkert\n```\n\n## About\n\n### Related projects\n\n* [helper-license](https://www.npmjs.com/package/helper-license): Template helper for adding a formatted license statement based on the license type in package.json. | [homepage](https://github.com/helpers/helper-license)\n* [helper-reflinks](https://www.npmjs.com/package/helper-reflinks): Async template helper for generating a list of markdown reference links. | [homepage](https://github.com/helpers/helper-reflinks)\n* [helper-related](https://www.npmjs.com/package/helper-related): Template helper for generating a list of links to the homepages of related GitHub/npm projects. | [homepage](https://github.com/helpers/helper-related)\n* [verb](https://www.npmjs.com/package/verb): Documentation generator for GitHub projects. Verb is extremely powerful, easy to use, and is used… [more](https://github.com/verbose/verb) | [homepage](https://github.com/verbose/verb)\n\n### Contributing\n\nPull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).\n\n### Contributors\n\n| **Commits** | **Contributor** |  \n| --- | --- |  \n| 53 | [jonschlinkert](https://github.com/jonschlinkert) |  \n| 1  | [ierceg](https://github.com/ierceg) |  \n| 1  | [mightyiam](https://github.com/mightyiam) |\n\n### Building docs\n\n_(This document was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme) (a [verb](https://github.com/verbose/verb) generator), please don't edit the readme directly. Any changes to the readme must be made in [.verb.md](.verb.md).)_\n\nTo generate the readme and API documentation with [verb](https://github.com/verbose/verb):\n\n```sh\n$ npm install -g verb verb-generate-readme && verb\n```\n\n### Running tests\n\nInstall dev dependencies:\n\n```sh\n$ npm install -d && npm test\n```\n\n### Author\n\n**Jon Schlinkert**\n\n* [github/jonschlinkert](https://github.com/jonschlinkert)\n* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)\n\n### License\n\nCopyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).\nReleased under the [MIT license](LICENSE).\n\n***\n\n_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.3.0, on January 08, 2017._","publish_time":1431617082134,"_cnpm_publish_time":1431617082134,"dist-tags":{"latest":"2.1.2"}}