{"_id":"@agentofuser/remark-giphy","_rev":"2-7de003486a28caeb5dabccac6e0872aa","name":"@agentofuser/remark-giphy","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@agentofuser/remark-giphy","publishConfig":{"access":"public"},"version":"1.0.0","description":"replace giphy:search_term with gif url from giphy","license":"MIT","keywords":["remark","remark-plugin","markdown","plugin","embed","giphy","youtube"],"repository":{"type":"git","url":"git+https://github.com/agentofuser/remark-giphy.git"},"bugs":{"url":"https://github.com/agentofuser/remark-giphy/issues"},"author":{"name":"Agent of User","email":"git@agentofuser.com","url":"https://agentofuser.com"},"contributors":[{"name":"Agent of User","email":"git@agentofuser.com","url":"https://agentofuser.com"}],"main":"dist/index.js","umd:main":"dist/remark-giphy.umd.production.js","module":"dist/remark-giphy.es.production.js","typings":"dist/index.d.ts","scripts":{"build":"tsdx build","commit":"git-cz","commit:retry":"git-cz --retry","commitmsg":"commitlint -e","semantic-release":"semantic-release","semantic-release:one-time-setup":"semantic-release-cli setup","start":"tsdx watch","test":"tsdx test"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/npm","@semantic-release/github","@semantic-release/git"]},"commitlint":{"extends":["@commitlint/config-conventional"],"rules":{"header-max-length":[2,"always",50],"body-max-line-length":[2,"always",72],"footer-max-line-length":[2,"always",72],"scope-empty":[2,"never"]}},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"peerDependencies":{},"husky":{"hooks":{"pre-commit":"pretty-quick --staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"prettier":{"printWidth":79,"semi":false,"singleQuote":true,"trailingComma":"es5","proseWrap":"always"},"devDependencies":{"@commitlint/cli":"^8.0.0","@commitlint/config-conventional":"^8.0.0","@commitlint/travis-cli":"^8.0.0","@semantic-release/commit-analyzer":"^6.1.0","@semantic-release/git":"^7.0.8","@semantic-release/github":"^5.2.10","@semantic-release/npm":"^5.1.7","@semantic-release/release-notes-generator":"^7.1.4","@types/jest":"^24.0.13","commitizen":"^3.1.1","cz-conventional-changelog":"^2.1.0","husky":"^2.4.0","prettier":"^1.18.2","pretty-quick":"^1.11.0","remark":"^10.0.1","semantic-release":"^15.13.12","semantic-release-cli":"^5.1.1","tsdx":"^0.6.1","tslib":"^1.9.3","typescript":"^3.5.1"},"dependencies":{"escape-string-regexp":"^2.0.0","giphy-js-sdk-core":"^1.0.6","unist-util-select":"^2.0.2"},"gitHead":"0d5761ecf25584eecfd5034126ae689602d48596","homepage":"https://github.com/agentofuser/remark-giphy#readme","_id":"@agentofuser/remark-giphy@1.0.0","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-KH3z0HS8JqxhVPOTH3RQmmqjH/v4BHID+vg2Zwt+TuADkCSKcdta79spmQAMYXV5UZvPsPIgQDse7wfzfXpWzA==","shasum":"0e2adcaae34b169afc9fd754c9d3fa1df89b1131","tarball":"https://registry.npmjs.org/@agentofuser/remark-giphy/-/remark-giphy-1.0.0.tgz","fileCount":19,"unpackedSize":150515,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc/3U5CRA9TVsSAnZWagAAH/4P/jKWe3Bs2CPov7LvJ1e4\nLDPcl7JeRepkgrusHgvgaIutEAu+rrm0q0cmgYbHMFJ6+2wWGVUJok5UJDwE\n2hdwXttx2KFT4HFqyN0M8RlNR0pGh3m78geZe235v0DbeUfDh51vps4Jr9Gq\n/r80/LLxx/T35tvh6UUxsgTjQXkcQAo7MAs+0cx6Q2AMntVDVEAM+0TQUWYA\neBTx+CffJQWbNkVK48OOQzMAUrOoltpYCARWBT+1tSYFVDwlZ8LWSw8NwkVq\n2YY6KoC624K7v9z27cRncfdZIVms26WKhBINB7562xfyDpSsrk0Z5/fIT7xb\nSyTMTA45rFNFGqMz476V+ReQGel83QWqvSWLajJfxm7cNCnrHtJr1vpw3lZK\nVBIYH6HVEdccBzKtl0pPVGxVpdng+3JlI25Fi7kt1bqocyR9tWBzjFso+lFM\nTQ3eI/Rmmt7/+0pkYhrfTp9GF90uC/SFvRka3KBsRI0QLR+tmUpk7IgduZ4H\nyrqQTiUR9bAnsSOdRHGCa3bTQkzPffmDiXoYlXtxmDHMJH+lvopNC/j89a4r\n0yn4eMcZzpqAxr8rqxdqLdfpmt8qOVoZHb1nn9geOlZww8oh6cc7wEVEEuoJ\noC9+6O91oXK2aeUNpayfTq2/dd7Yj6SUnHZsPhC3ENwn9N5gK/Dqmk06Qlrc\nZxUK\r\n=759Q\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDaPpAtpYYnp6eP7aJoolh1x0iloJeLg5kNw5I6xOcYyQIgIeQSnTfdsnf/gENwJT5XmaRJ/ZdxsYxn1POZ/aPGZn4="}]},"maintainers":[{"name":"agentofuser","email":"npmjs.com@agentofuser.com"}],"_npmUser":{"name":"agentofuser","email":"npmjs.com@agentofuser.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-giphy_1.0.0_1560245560653_0.09836399608547186"},"_hasShrinkwrap":false},"1.0.1":{"name":"@agentofuser/remark-giphy","publishConfig":{"access":"public"},"version":"1.0.1","description":"replace giphy:search_term with gif url from giphy","license":"MIT","keywords":["remark","remark-plugin","markdown","plugin","embed","giphy","youtube"],"repository":{"type":"git","url":"git+https://github.com/agentofuser/remark-giphy.git"},"bugs":{"url":"https://github.com/agentofuser/remark-giphy/issues"},"author":{"name":"Agent of User","email":"git@agentofuser.com","url":"https://agentofuser.com"},"contributors":[{"name":"Agent of User","email":"git@agentofuser.com","url":"https://agentofuser.com"}],"main":"dist/index.js","umd:main":"dist/remark-giphy.umd.production.js","module":"dist/remark-giphy.es.production.js","typings":"dist/index.d.ts","scripts":{"build":"tsdx build","commit":"git-cz","commit:retry":"git-cz --retry","commitmsg":"commitlint -e","semantic-release":"semantic-release","semantic-release:one-time-setup":"semantic-release-cli setup","start":"tsdx watch","test":"tsdx test"},"release":{"plugins":["@semantic-release/commit-analyzer","@semantic-release/release-notes-generator","@semantic-release/npm","@semantic-release/github","@semantic-release/git"]},"commitlint":{"extends":["@commitlint/config-conventional"],"rules":{"header-max-length":[2,"always",50],"body-max-line-length":[2,"always",72],"footer-max-line-length":[2,"always",72],"scope-empty":[2,"never"]}},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"peerDependencies":{},"husky":{"hooks":{"pre-commit":"pretty-quick --staged","commit-msg":"commitlint -E HUSKY_GIT_PARAMS"}},"prettier":{"printWidth":79,"semi":false,"singleQuote":true,"trailingComma":"es5","proseWrap":"always"},"devDependencies":{"@commitlint/cli":"^8.0.0","@commitlint/config-conventional":"^8.0.0","@commitlint/travis-cli":"^8.0.0","@semantic-release/commit-analyzer":"^6.1.0","@semantic-release/git":"^7.0.8","@semantic-release/github":"^5.2.10","@semantic-release/npm":"^5.1.7","@semantic-release/release-notes-generator":"^7.1.4","@types/jest":"^24.0.13","commitizen":"^3.1.1","cz-conventional-changelog":"^2.1.0","husky":"^2.4.0","prettier":"^1.18.2","pretty-quick":"^1.11.0","remark":"^10.0.1","semantic-release":"^15.13.12","semantic-release-cli":"^5.1.1","tsdx":"^0.6.1","tslib":"^1.9.3","typescript":"^3.5.1"},"dependencies":{"escape-string-regexp":"^2.0.0","giphy-js-sdk-core":"^1.0.6","unist-util-select":"^2.0.2"},"gitHead":"6a4d7dc910f5a3ced68b87d9813c72259d3e72af","homepage":"https://github.com/agentofuser/remark-giphy#readme","_id":"@agentofuser/remark-giphy@1.0.1","_nodeVersion":"10.16.0","_npmVersion":"6.9.0","dist":{"integrity":"sha512-Qqf5nSr9138ZmMWPowiXRbtVz7nM8pPGWW1iXVrny2up83jsMJJ3C9wH5a6lWbUxPRfRhKz0LZJRHSHxbMXxTg==","shasum":"2e5c3671f8f15c1793934ae2aa56856ae71af7eb","tarball":"https://registry.npmjs.org/@agentofuser/remark-giphy/-/remark-giphy-1.0.1.tgz","fileCount":19,"unpackedSize":152577,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc/7evCRA9TVsSAnZWagAAdVQP/1DXXaN5V0Vt+neb2NLr\nQagAsb0XF2Uvka8ALYIyNgul5jVPS3jtu2iVsiMLDu/kNGT73ey/CU1kNOAz\n6LMKe2qQ0KZGjj4KyRXffvAJMFFFvrFl536dj7PG1Z2WnYqbA2lgnAAOMb+k\n0b/rbMTIidwJQsC8MZDYhv2IHr1Q4dbnIUJPqHsMezpFcfDl8zBPlyfOVo9/\nwmddaZzMzgMjMALjp7llOsmeCFjjQ1cmEHXwx4lgfdQjYq1OfT/3EBulRJLr\n39Q8qOzPGFpRl3UfeqM05y9wU/Z2XYObbtvC8A0kzpfp7CszVBeYixTMxzT0\nngPTif+foPC2UTqsfBij7tpuvz268YUja83IQNd4HobEZBj68hW82HjpAFt0\nIfZWwyAlRMm+f0OqE3nZjCCiIcNFpIPyrEFHmzdCjMFFE5e44V9jIU4SKVhb\ndIED6GvMCfP3NFeZlM9DY00oAIzmjxU595+3793/BugrCu4CVIr+4B0vMnTK\neGOlfqMN8rQeWKZgGeVYA2xpFI7bm7HLiSWwZ8EGe6vbQCHQnxHLXD/9RTdJ\nw3NuSz96P1tLR00WvQfdj0OhmEFvTDywLZvba0NxqUBvsSsiCgzqRogIAheW\n/J3NYh7Gg9Kp2VZhCC38gxiMwDBHvpS4Px5La4XQft4XorDlECDk56LsnJzF\n3ruk\r\n=EKNF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHn2Bs3cgF+B+7rN1PjlE8PeI5IV6z0B3iMUHF8UVvJ5AiBrCZRqD1qLDu0bjteSM2Etei1vvOkbos89S9VlxbLpeA=="}]},"maintainers":[{"name":"agentofuser","email":"npmjs.com@agentofuser.com"}],"_npmUser":{"name":"agentofuser","email":"npmjs.com@agentofuser.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/remark-giphy_1.0.1_1560262574657_0.7989634050367527"},"_hasShrinkwrap":false}},"time":{"created":"2019-06-11T09:32:40.626Z","1.0.0":"2019-06-11T09:32:40.819Z","modified":"2022-04-04T11:56:25.102Z","1.0.1":"2019-06-11T14:16:14.769Z"},"maintainers":[{"name":"agentofuser","email":"npmjs.com@agentofuser.com"}],"description":"replace giphy:search_term with gif url from giphy","homepage":"https://github.com/agentofuser/remark-giphy#readme","keywords":["remark","remark-plugin","markdown","plugin","embed","giphy","youtube"],"repository":{"type":"git","url":"git+https://github.com/agentofuser/remark-giphy.git"},"contributors":[{"name":"Agent of User","email":"git@agentofuser.com","url":"https://agentofuser.com"}],"author":{"name":"Agent of User","email":"git@agentofuser.com","url":"https://agentofuser.com"},"bugs":{"url":"https://github.com/agentofuser/remark-giphy/issues"},"license":"MIT","readme":"# remark-giphy\n\n[![Downloads][downloads-badge]][downloads] [![Chat][chat-badge]][chat]\n\nAdd `giphy:` as a\n[CommonMark URI scheme](https://spec.commonmark.org/0.29/#scheme).\n\nExamples:\n\n- Replace `![](giphy:search_term)` with first matching gif from giphy.\n- Replace `![](<giphy:unescaped query>)` with first matching gif from giphy.\n- Replace `[link](<giphy:search term>)` with first matching gif from giphy.\n\n## Installation\n\n[yarn][]:\n\n```bash\nyarn add @agentofuser/remark-giphy\n```\n\n## Usage\n\nSay we have the following file, `demo.md`:\n\n<!-- prettier-ignore -->\n```markdown\nHello there! 👋\n\n![](giphy:whats_up 'How is it going?')\n```\n\nAnd our script, `example.js`, looks as follows:\n\n```javascript\nvar fs = require('fs')\nvar remark = require('remark')\nvar giphy = require('@agentofuser/remark-giphy')\n\nremark()\n  .use(giphy, { giphyApiKey: 'your-key' })\n  .process(fs.readFileSync('demo.md'), function(err, file) {\n    if (err) throw err\n    console.log(String(file))\n  })\n```\n\nNow, running `node example` yields:\n\n```markdown\nHello there! 👋\n\n![](https://media.giphy.com/media/eoVusT7Pi9ODe/giphy.gif 'How is it going?')\n```\n\n## API\n\n### `remark().use(giphy, options)`\n\nTake `![](giphy:search_term)` and replace with first matching gif from giphy.\n\n- The object `options` MUST contain a valid Giphy API key as the `giphyApiKey`\n  property.\n- The object `options` MAY contain a valid Giphy API ID as the\n  `notFoundGiphyId` property. It will be used when there are no search results\n  for the term used. The default is this one:\n\n  ![404 not found](https://media.giphy.com/media/14uQ3cOFteDaU/giphy.gif 'not found gif')\n\n## Contribute\n\nSee [`contributing.md` in `remarkjs/remark`][contribute] for ways to get\nstarted.\n\nThis organisation has a [Code of Conduct][coc]. By interacting with this\nrepository, organisation, or community you agree to abide by its terms.\n\n## License\n\n[MIT][license] © [Agent of User][author]\n\n<!-- Definitions -->\n\n[build-badge]: https://img.shields.io/travis/agentofuser/remark-giphy.svg\n[build]: https://travis-ci.org/agentofuser/remark-giphy\n[downloads-badge]: https://img.shields.io/npm/dm/remark-giphy.svg\n[downloads]: https://www.npmjs.com/package/@agentofuser/remark-giphy\n[chat-badge]:\n  https://img.shields.io/badge/join%20the%20community-on%20spectrum-7b16ff.svg\n[chat]: https://spectrum.chat/unified/remark\n[yarn]: https://yarnpkg.com/en/docs/install\n[license]: LICENSE.md\n[author]: https://agentofuser.com\n[remark]: https://github.com/remarkjs/remark\n[contribute]: https://github.com/remarkjs/remark/blob/master/contributing.md\n[coc]: https://github.com/remarkjs/remark/blob/master/code-of-conduct.md\n","readmeFilename":"README.md"}