{"_id":"@agirorn/metalsmith-title","_rev":"1-85036afd22831d26343514f1e972c141","name":"@agirorn/metalsmith-title","dist-tags":{"latest":"0.0.2"},"versions":{"0.0.2":{"name":"@agirorn/metalsmith-title","description":"A Metalsmith plugin that automatically add a title from processed file","repository":{"type":"git","url":"git://github.com/agirorn/metalsmith-title.git"},"version":"0.0.2","license":"MIT","main":"lib/metalsmith-title.js","devDependencies":{"assert-dir-equal":"^1.1.0","eslint":"^6.1.0","eslint-config-airbnb-base":"^13.2.0","eslint-plugin-import":"^2.18.2","metalsmith":"^2.3.0","mocha":"^6.2.0"},"scripts":{"test":"mocha --reporter spec","lint":"eslint lib test","testAndLint":"npm test && npm run lint"},"licenseText":"The MIT License (MIT)\n\nCopyright (c) 2014 Roman Ožana\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE.\n","_id":"@agirorn/metalsmith-title@0.0.2","dist":{"shasum":"550b601aa5770aea59427da036a6891190d38499","integrity":"sha512-RUmIuAM3opClqyudqzXDMYg7CzSnkshS0LYQDTQCLw4B+eGTPvyaFjHhwoimhs62E4yO5hGUGmtBgT8KLJjDsw==","tarball":"https://registry.npmjs.org/@agirorn/metalsmith-title/-/metalsmith-title-0.0.2.tgz","fileCount":31,"unpackedSize":7167,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdOXwvCRA9TVsSAnZWagAAa2gP/3bka2+XCNNaolNoQzPy\n1+Vt6ig3641pHM3Kat1FdySIq07FbbsbQ02sxBxG5w6zcus5eAfpSh8Gsb+J\nXSEt4yGGTHtlPY97x1sjMMbPFwMGVnZzDwoGvSRG9Gfy1GUaskGtt8I2c+FE\nDz457bXbD/9pvzqnTxvhhxeA64SAfxPIoqDUfNx/fJ6qrlSiM6kMRGR/BYIM\nVnxGtW64o66RR8k/ILmJ4YEXBUat80NZoxgoO4Mdi5+RHMC7vnQMITjoHHVv\nY4OQxs/BB/Q/W6w8/DdGSX2LrEgxivbNrp/AmnC0T+/JVbUGPSI2mGVX+Nng\nTkxYiJiNJIgLoLLokG8GOvh1M7xgMQxjCAXqQNxsM7z+7MbvYUDLdqjA+KjN\n5w3M7ciTJ4apV/ce5Ss+Z2ZzL6af9O07CDbUk29oacpu0ApY+F/laQkCqSf4\nggY/VRZiVefwixg/wjVEFvoBHZclRUVjsHGXcVlAI85d13aEX2H+bmlN9stP\n18RV2wZZSZvJHTkanBqFEAfJBwP1f3PHkZJl3aX3DvKGQbIoKhFo9kcwwmbd\np6k+OQbT5ejQKAQRAO86zKfm+FIttNBC0VTIaG9B0YV5Xy1GIveancyrDiP5\nRyRszCER8dUNvQE3YQX0cS+rMFb+r+eftuwClIc4E81IKsAlkFZDV8YrDFcl\nsfCz\r\n=vO7F\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAjPlGfZ/ti4qmPIyKrsEzFfdTQu3Xub0hX2xFs9oHpYAiA6E1dnl8ji9M08gKKoe+hNQc7RodRcC/5bmB/eCsqB6w=="}]},"maintainers":[{"name":"agirorn","email":"agirorn@gmail.com"}],"_npmUser":{"name":"agirorn","email":"agirorn@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/metalsmith-title_0.0.2_1564048431015_0.0383560147881421"},"_hasShrinkwrap":false}},"time":{"created":"2019-07-25T09:53:50.810Z","0.0.2":"2019-07-25T09:53:51.143Z","modified":"2022-04-04T11:59:53.168Z"},"maintainers":[{"name":"agirorn","email":"agirorn@gmail.com"}],"description":"A Metalsmith plugin that automatically add a title from processed file","repository":{"type":"git","url":"git://github.com/agirorn/metalsmith-title.git"},"license":"MIT","readme":"[![Build Status](https://travis-ci.org/agirorn/metalsmith-title.svg?branch=master)](https://travis-ci.org/agirorn/metalsmith-title)\n\n# @agirorn/metalsmith-title\n\n> This is a clone of the original [metalsmith-title](https://www.npmjs.com/package/metalsmith-title)\n\n  A Metalsmith plugin that automatically add page title from first heading in\n  processed file\n\n  This clone of metalsmith-title adds an option to remove title after detecting\n  it and setting it as metadata. Useful when you want to use markdown documents\n  verbatim, but have special treatments for titles in your templates, such as\n  putting them inside of <header> tags.\n\n## Installation\n\n**Using [npm](https://docs.npmjs.com/cli/install.html)**\n\n```shell\n  npm install @agirorn/metalsmith-title\n```\n\n**Using [yarn](https://yarnpkg.com)**\n\n```shell\n  yarn add @agirorn/metalsmith-title\n```\n\n\n## Usage\n\n  Extract the first tile from all (HTML and Markdown) files.\n\n```js\n  const title = require('metalsmith-title');\n  metalsmith.use(title());\n```\n\n  Use the `title` in\n  a [metalsmith-layouts](https://www.npmjs.com/package/metalsmith-layouts)\n\n```handlebars\n\t<title>{{ title }}</title>\n```\n\n  The `title` can be removed from the file after extraction.\n\n```js\n  const title = require('metalsmith-title');\n  metalsmith.use(title({ remove: true }));\n```\n\n## CLI Usage\n\n  Install via npm and then add the `metalsmith-title` key to your\n  `metalsmith.json`\n\n```json\n  {\n    \"plugins\": {\n      \"metalsmith-title\": true\n    }\n  }\n```\n\n## License\n\n  MIT\n","readmeFilename":"README.md"}