{"_id":"@11tyrocks/eleventy-plugin-emoji-readtime","_rev":"2-d5e8733ac98578fb692f567a6dcb18fe","name":"@11tyrocks/eleventy-plugin-emoji-readtime","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@11tyrocks/eleventy-plugin-emoji-readtime","version":"1.0.0","description":"Display an estimated read time for Eleventy content, optionally with an emoji visual indicator.","homepage":"https://11ty.rocks/#plugin-emoji-read-time","main":".eleventy.js","scripts":{"start":"eleventy --serve","build":"eleventy","bump":"npm --no-git-tag-version version"},"repository":{"type":"git","url":"git+https://github.com/5t3ph/eleventy-plugin-emoji-readtime.git"},"keywords":["11ty","11ty-plugin","eleventy","eleventy-plugin"],"author":{"name":"5t3ph","url":"https://11ty.rocks"},"license":"ISC","bugs":{"url":"https://github.com/5t3ph/eleventy-plugin-emoji-readtime/issues"},"devDependencies":{"@11ty/eleventy":"^0.11.1"},"_id":"@11tyrocks/eleventy-plugin-emoji-readtime@1.0.0","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-z2MLfpwaWuBGL2khs201YA6rP/4zl+FqaW2Z0yRrub4PAZ2TeyaSKaoWvRQ2mUC++G/9aOWblcXxJwJ0Bo2cJw==","shasum":"77497baa093a5831af10ac6aa0373922cf1fb955","tarball":"https://registry.npmjs.org/@11tyrocks/eleventy-plugin-emoji-readtime/-/eleventy-plugin-emoji-readtime-1.0.0.tgz","fileCount":3,"unpackedSize":3780,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJflHSVCRA9TVsSAnZWagAAdbUQAJO+sq9Y0HyWUqkmNSvN\nLLO9feJFlOmPQazr6wlBr6UFnDHir+FVZjUSvbR8yqIhClFH26Y+2Y+Oq+0z\ncO8b5g2BatMI93/fkjm7NbzNzEI1sEsYMwavceUYzcCUP9qQtV0fOAI6cHD+\npJlMNVWK+LoFh1z1IqH0RfzBZ48CnbkIuyrSbiP/vtuYOUHQet8zvT5bmQWL\n7dCBq3hABQnI13hWsivkbK0iskhNa4HZpH0b0Ik1RTOVknfC4QCgIxPsMpoQ\nyTpipCuS5FrSidxZmm43ncPb+UNOnmaOL6kNzrPC2TBiCy9GMknQBigmlsKW\nRVSyVr/OyrvYRb8I/iKffsYuAXorWhClhZGjfyHzSYOymIc5Plb78clPlcUj\nhEvZlROc7m/rI5+rgRICK+4NGYlBhqpTSiGlBouNKBLq1szSfETY30GsVWtA\n7eMaTy6W9CfOfxXD3SpGr9iMfynZ1GlfFSslxfsQigkiX5dEa0WuPSH7JaEw\nYr5d7BzsSDgQ9Aie3iOSAAu4SZpd1EYNwdJqedcvTC/eiWuCdTRdHYf3/pPp\nAo2twGts/ZVOyXDjfFq/IbRgw20Ux03SpCeQZ4w8J3VxcLCz2rxTvJOCePf6\np48B5j0RYPTkqbMyPkaqADD/DbBSGK+8Ld+aeEL7kSRB9z9v/z500GkMkBPR\n3b7u\r\n=Gk8m\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDLUIjRPJT/v5dOaUZqsSMSuEftGqe4+dvPoA2xRUfnrgIgZ1kEkfQ6hv53zUnrhYozpNnaWZQtzRraL4WkMl8rQGc="}]},"maintainers":[{"name":"5t3ph","email":"webdev5t3ph@gmail.com"}],"_npmUser":{"name":"5t3ph","email":"webdev5t3ph@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eleventy-plugin-emoji-readtime_1.0.0_1603564693428_0.3971942322459985"},"_hasShrinkwrap":false},"1.0.1":{"name":"@11tyrocks/eleventy-plugin-emoji-readtime","version":"1.0.1","description":"Display an estimated read time for Eleventy content, optionally with an emoji visual indicator.","homepage":"https://11ty.rocks/#plugin-emoji-read-time","main":".eleventy.js","scripts":{"start":"eleventy --serve","build":"eleventy","bump":"npm --no-git-tag-version version"},"repository":{"type":"git","url":"git+https://github.com/5t3ph/eleventy-plugin-emoji-readtime.git"},"keywords":["11ty","11ty-plugin","eleventy","eleventy-plugin"],"author":{"name":"5t3ph","url":"https://11ty.rocks"},"license":"ISC","bugs":{"url":"https://github.com/5t3ph/eleventy-plugin-emoji-readtime/issues"},"devDependencies":{"@11ty/eleventy":"^0.11.1"},"gitHead":"d6a0ba6e748fec7f37a922fc40c278fa8eb4644c","_id":"@11tyrocks/eleventy-plugin-emoji-readtime@1.0.1","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-AYLOm3Bt5hskZeWkckOkLoGZyYcWVbfZrc+09BpOt4/VmAa+Sx3bH8LSKW/b3YMYq234Q5iuErnv3Cgb4zPL6w==","shasum":"3be148ac0e814fc4e0066447495c06b5155bb8f6","tarball":"https://registry.npmjs.org/@11tyrocks/eleventy-plugin-emoji-readtime/-/eleventy-plugin-emoji-readtime-1.0.1.tgz","fileCount":3,"unpackedSize":3802,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJflHmYCRA9TVsSAnZWagAAalcP/3fPLAB09zl5F8fmprVN\noB8z8uIm40E+yVPvpLxVobajajVE5VoF3+mkqv/eGbWtI2sxeBlBCoYm8bJn\npjlnaGOzK3kMkPMFg0Kjd1WSM+h6RQcUT/pfPTD3q/XshS5AOAjjuoTUabor\nUITSLGNl6kVi4uByL4vlexc7bE/q2UXlpVdt5K/PZtndSkE+vbfQCqrrHDHo\npUZubvESpO6W78fXoW18St2JOkHwrhubT/JhGkrU8qYdn7R/hDpyrGOj3HSb\nxCV6Ws4W+DW8DNj0B9DxacyzE+MmyXYxvU/+X6vVgEx/WYTaEz7b2sVbepxW\nthgajP8xA5C9wjigNS4lwXggh1Gcx8TpHMtqlQMGl78JA7IfsFFA3bLCurzf\nqeQoyPYVGB33j41OOMvpatMPg9TmqcJo2AhqTMY1Ds1zVfBQP4Cw2zohFw9e\nqe+404RXzk1MOJRlPVE+oj886pqk6DByPL/gKOFcIgM2yUX0qlkOoZ588O8m\n8jKbo0n3D3OE2mvpOjnipuf4sq4dk4pe3bHuXt+e9XMHmX81SmqVkgH1BaFB\n6ZjW33GRi241QtxsNGRUU3QBm87eW0QWkB9KyyUnoi7tR1cO/XDSgIvsvRXp\n9S1yyxCgoTv/0nmP9AtRINvVpqYEfqnEgFXxkcS3TOmQiwn0yq6BDYfesxYF\nRxqf\r\n=JUr+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICIXHTF8wM6A+WnKJCCP+pCCMFUL5j8y3KLJiZLamBWwAiEAhgb7BcO9DtPGInWBqAZtuhifTL4ZB0ckBrjfhqK4UA0="}]},"maintainers":[{"name":"5t3ph","email":"webdev5t3ph@gmail.com"}],"_npmUser":{"name":"5t3ph","email":"webdev5t3ph@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/eleventy-plugin-emoji-readtime_1.0.1_1603565975818_0.45734651465567344"},"_hasShrinkwrap":false}},"time":{"created":"2020-10-24T18:38:13.162Z","1.0.0":"2020-10-24T18:38:13.559Z","modified":"2022-04-04T10:30:52.848Z","1.0.1":"2020-10-24T18:59:36.001Z"},"maintainers":[{"name":"5t3ph","email":"webdev5t3ph@gmail.com"}],"description":"Display an estimated read time for Eleventy content, optionally with an emoji visual indicator.","homepage":"https://11ty.rocks/#plugin-emoji-read-time","keywords":["11ty","11ty-plugin","eleventy","eleventy-plugin"],"repository":{"type":"git","url":"git+https://github.com/5t3ph/eleventy-plugin-emoji-readtime.git"},"author":{"name":"5t3ph","url":"https://11ty.rocks"},"bugs":{"url":"https://github.com/5t3ph/eleventy-plugin-emoji-readtime/issues"},"license":"ISC","readme":"## Eleventy Plugin: Emoji Read Time\n\n> Display an estimated read time for Eleventy content, optionally with an emoji visual indicator.\n\n## To Use\n\nThis plugin provides a filter that can be applied by passing in the Eleventy-supplied `content` variable, which work best from the _layout_ used by the content. A simple string is returned, so the text formatting is up to you.\n\nFirst, install the plugin in your project:\n\n```bash\nnpm install @11tyrocks/eleventy-plugin-emoji-readtime\n```\n\nThen, include it in your `.eleventy.js` config file:\n\n```js\nconst emojiReadTime = require(\"@11tyrocks/eleventy-plugin-emoji-readtime\");\n\nmodule.exports = (eleventyConfig) => {\n  eleventyConfig.addPlugin(emojiReadTime);\n};\n```\n\n\\*_Review config options and examples below for how to modify the output_\n\nFinally, add it as a filter to `content` wherever you'd like it to display:\n\n```html\n<p>{{ content | emojiReadTime }}</p>\n```\n\nExample output with defaults:\n\n```html\n🍿 7 min. read\n```\n\n## Config Options\n\n| Option     | Type    | Default   |\n| ---------- | ------- | --------- |\n| wpm        | number  | 275       |\n| showEmoji  | boolean | true      |\n| emoji      | string  | 🍿        |\n| label      | string  | min. read |\n| bucketSize | number  | 5         |\n\n## Config Examples\n\nChange the emoji in use, the words-per-minute (wpm), the label, and the `bucketSize`, where `bucketSize` is what minute is divided by to determine how many emoji to show:\n\n```js\neleventyConfig.addPlugin(emojiReadTime, {\n  emoji: \"📕\",\n  label: \"mins\",\n  wpm: 300,\n  bucketSize: 3,\n});\n```\n\nWhich would output:\n\n```html\n📕📕 7 mins\n```\n\n### Remove emoji from being displayed\n\nOr, remove the emoji and only display the number of minutes and a label:\n\n```js\neleventyConfig.addPlugin(emojiReadTime, { showEmoji: false });\n```\n\n## Credits\n\n- Monica Powell's [egghead lesson](https://egghead.io/lessons/javascript-format-reading-time-with-emojis-on-a-gatsby-page) for the logic of creating \"buckets\" of time filled with emoji\n- Bryan Robinson's [\"Create a Plugin with 11ty\"](https://www.youtube.com/watch?v=aO-NFFKjnnE) demonstration on \"Learn With Jason\"\n- Default read time from [Medium's recommendation](https://blog.medium.com/read-time-and-you-bc2048ab620c) (Psst - disagree? Change the `wpm` value)\n","readmeFilename":"README.md"}