{
  "_args": [
    [
      {
        "raw": "parse-it@^1.0.0",
        "scope": null,
        "escapedName": "parse-it",
        "name": "parse-it",
        "rawSpec": "^1.0.0",
        "spec": ">=1.0.0 <2.0.0",
        "type": "range"
      },
      "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/formatoid"
    ]
  ],
  "_from": "parse-it@^1.0.0",
  "_hasShrinkwrap": false,
  "_id": "parse-it@1.0.9",
  "_location": "/parse-it",
  "_nodeVersion": "10.15.0",
  "_npmOperationalInternal": {
    "host": "s3://npm-registry-packages",
    "tmp": "tmp/parse-it_1.0.9_1546544440875_0.702039778452576"
  },
  "_npmUser": {
    "name": "ionicabizau",
    "email": "bizauionica@gmail.com"
  },
  "_npmVersion": "6.4.1",
  "_phantomChildren": {},
  "_requested": {
    "raw": "parse-it@^1.0.0",
    "scope": null,
    "escapedName": "parse-it",
    "name": "parse-it",
    "rawSpec": "^1.0.0",
    "spec": ">=1.0.0 <2.0.0",
    "type": "range"
  },
  "_requiredBy": [
    "/formatoid"
  ],
  "_resolved": "https://registry.npmjs.org/parse-it/-/parse-it-1.0.9.tgz",
  "_shasum": "09c9f52734de2cba309d0e083de305c912f294f3",
  "_shrinkwrap": null,
  "_spec": "parse-it@^1.0.0",
  "_where": "/home/zoltan/src/pnpm/pnpm/packages/pnpm/node_modules/formatoid",
  "author": {
    "name": "Ionică Bizău",
    "email": "bizauionica@gmail.com",
    "url": "https://ionicabizau.net"
  },
  "bugs": {
    "url": "https://github.com/IonicaBizau/parse-it/issues"
  },
  "dependencies": {
    "regex-escape": "^3.4.0"
  },
  "description": "Configurable string templating, without separators.",
  "devDependencies": {},
  "directories": {},
  "dist": {
    "integrity": "sha512-8KW9XwW5+DFsvkkSXLZw7AGormnQ+/unnqmTPq7uoiAJNaeLo0T78zT/Ootc0HrdEgVvxM4+mOCRLKJOVtkogQ==",
    "shasum": "09c9f52734de2cba309d0e083de305c912f294f3",
    "tarball": "https://registry.npmjs.org/parse-it/-/parse-it-1.0.9.tgz",
    "fileCount": 4,
    "unpackedSize": 10362,
    "npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcLmU5CRA9TVsSAnZWagAAAw8QAJY2rCQdnGnr70JCJXTi\neihcgT/20AvU1xyMCPEp3ieY9b9NW4Qsr9VCzP9ZLm2HR4lVbg+onryl0ZqL\ni96kDC5T03OLQse455u/WemcQhK1TdA9nI9mVVAH+KDPrgXxepjPC/+vg1qw\nqGecgDzPS8iEiW9Y5/q9bCt/WwL12sbPX8qw3ChVjZEj6IZxxIKMPwvofLFh\n33Zbnb4dKX57GCgQXoUAg1vg0r5Of7q85YSbKNCloh8pXYoAOzOtrvXKysaD\nVEblhb/vAqLQY+qEBLmGOGlHA5iH1d83oTArmvD7Gvt1e9H2Sw2HJEhlJ7DO\nHLMahGOgGSXQULFf5ixSYVT2AhPmAK6bfvuUa3z8iDtVHXtPG1wf/qJbt+ou\n1BmpMr2lVdYK8N2qlc64BBFF8oxiBmtRWUDGEKFZxuoEImsRSaIBklpz1WBm\np7c+nnhBDP/SkYyh0FSk6G1TeSBU1NNmN8ECrpne2kO3IKHz7niM64gjuAaE\nmGJ1tevBeW+wiay+ZiojcmGP9FWBJiVJW/bXhkXgdtBspKpQNSEElaa+pgXE\nnUYEtLY7oERJTXRo/hyPMFo42rv9cKUzuhdObbqCYIz2QeW6XvM8RbRk3/Jk\np6LQPXJEfR4vNA4IRXFsXDANh1PizbhF3VBPc44QU0OoV0TFtH6OWNg3gPi3\nS1Tg\r\n=eUYJ\r\n-----END PGP SIGNATURE-----\r\n"
  },
  "files": [
    "bin/",
    "app/",
    "lib/",
    "dist/",
    "src/",
    "scripts/",
    "resources/",
    "menu/",
    "cli.js",
    "index.js",
    "bloggify.js",
    "bloggify.json",
    "bloggify/"
  ],
  "gitHead": "22db72d886b64655e19d920c268aa3da15fc9751",
  "homepage": "https://github.com/IonicaBizau/parse-it#readme",
  "keywords": [
    "parser",
    "templating",
    "string"
  ],
  "license": "MIT",
  "main": "lib/index.js",
  "maintainers": [
    {
      "name": "ionicabizau",
      "email": "bizauionica@gmail.com"
    }
  ],
  "name": "parse-it",
  "optionalDependencies": {},
  "readme": "<!-- Please do not edit this file. Edit the `blah` field in the `package.json` instead. If in doubt, open an issue. -->\n\n\n# parse-it\n\n [![Support me on Patreon][badge_patreon]][patreon] [![Buy me a book][badge_amazon]][amazon] [![PayPal][badge_paypal_donate]][paypal-donations] [![Ask me anything](https://img.shields.io/badge/ask%20me-anything-1abc9c.svg)](https://github.com/IonicaBizau/ama) [![Version](https://img.shields.io/npm/v/parse-it.svg)](https://www.npmjs.com/package/parse-it) [![Downloads](https://img.shields.io/npm/dt/parse-it.svg)](https://www.npmjs.com/package/parse-it) [![Get help on Codementor](https://cdn.codementor.io/badges/get_help_github.svg)](https://www.codementor.io/johnnyb?utm_source=github&utm_medium=button&utm_term=johnnyb&utm_campaign=github)\n\n<a href=\"https://www.buymeacoffee.com/H96WwChMy\" target=\"_blank\"><img src=\"https://www.buymeacoffee.com/assets/img/custom_images/yellow_img.png\" alt=\"Buy Me A Coffee\"></a>\n\n> Configurable string templating, without separators.\n\n## :cloud: Installation\n\n```sh\n# Using npm\nnpm install --save parse-it\n\n# Using yarn\nyarn add parse-it\n```\n\n\n## :clipboard: Example\n\n\n\n```js\nconst parseIt = require(\"parse-it\");\n\n// Replace strings\nconsole.log(parseIt(\"Hello WORLD!\", { WORLD: \"Mars\" }));\n// => Hello Mars!\n\n// Use functions\nconsole.log(parseIt(\"Random number: random\", { random: () => Math.random() }));\n// => Random number: 0.21168493130244315\n\n// Using as class\nvar Parser = parseIt.Parser;\n\n// Display a date\nvar p = new Parser({\n    d: function (d) { return d.getDate() }\n  , M: function (d) { return d.getMonth() }\n  , YYYY: function (d) { return d.getFullYear() }\n});\n\nconsole.log(p.run(\"d/M/YYYY\", [new Date(1989, 11, 20)]));\n// => 20/11/1989\n```\n\n\n\n## :question: Get Help\n\nThere are few ways to get help:\n\n 1. Please [post questions on Stack Overflow](https://stackoverflow.com/questions/ask). You can open issues with questions, as long you add a link to your Stack Overflow question.\n 2. For bug reports and feature requests, open issues. :bug:\n\n 3. For direct and quick help, you can [use Codementor](https://www.codementor.io/johnnyb). :rocket:\n\n\n\n## :memo: Documentation\n\n\n### `ParseIt(obj)`\nThe `ParseIt` class. It can be used to use the same data object but with different formats/arguments.\n\n#### Params\n\n- **Object** `obj`: An object containing the fields to replace.\n\n### `parseIt(format, args)`\nrun\nReplaces the fields in the format string with data coming from the data object.\n\n#### Params\n\n- **String** `format`: The format input.\n- **Array** `args`: An array of arguments to be passed to the replace function (stored in the `obj` object).\n\n#### Return\n- **String** The result as string.\n\n### `parseIt(format, obj, args)`\nA wrapper around the `ParseIt` class. The `ParseIt` constructor is accessible using `parseIt.Parser`.\n\n#### Params\n\n- **String** `format`: The format input.\n- **Object** `obj`: An object containing the fields to replace.\n- **Array** `args`: An array of arguments to be passed to the replace function (stored in the `obj` object).\n\n#### Return\n- **String** The result as string.\n\n\n\n## :yum: How to contribute\nHave an idea? Found a bug? See [how to contribute][contributing].\n\n\n## :sparkling_heart: Support my projects\n\nI open-source almost everything I can, and I try to reply to everyone needing help using these projects. Obviously,\nthis takes time. You can integrate and use these projects in your applications *for free*! You can even change the source code and redistribute (even resell it).\n\nHowever, if you get some profit from this or just want to encourage me to continue creating stuff, there are few ways you can do it:\n\n\n - Starring and sharing the projects you like :rocket:\n - [![Buy me a book][badge_amazon]][amazon]—I love books! I will remember you after years if you buy me one. :grin: :book:\n - [![PayPal][badge_paypal]][paypal-donations]—You can make one-time donations via PayPal. I'll probably buy a ~~coffee~~ tea. :tea:\n - [![Support me on Patreon][badge_patreon]][patreon]—Set up a recurring monthly donation and you will get interesting news about what I'm doing (things that I don't share with everyone).\n - **Bitcoin**—You can send me bitcoins at this address (or scanning the code below): `1P9BRsmazNQcuyTxEqveUsnf5CERdq35V6`\n\n    ![](https://i.imgur.com/z6OQI95.png)\n\n\nThanks! :heart:\n\n\n## :dizzy: Where is this library used?\nIf you are using this library in one of your projects, add it in this list. :sparkles:\n\n\n - [`formatoid`](https://github.com/IonicaBizau/formatoid#readme)—Tiny and fast module for formatting date objects.\n\n## :scroll: License\n\n[MIT][license] © [Ionică Bizău][website]\n\n\n[badge_patreon]: https://ionicabizau.github.io/badges/patreon.svg\n[badge_amazon]: https://ionicabizau.github.io/badges/amazon.svg\n[badge_paypal]: https://ionicabizau.github.io/badges/paypal.svg\n[badge_paypal_donate]: https://ionicabizau.github.io/badges/paypal_donate.svg\n\n[patreon]: https://www.patreon.com/ionicabizau\n[amazon]: http://amzn.eu/hRo9sIZ\n[paypal-donations]: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=RVXDDLKKLQRJW\n\n[license]: http://showalicense.com/?fullname=Ionic%C4%83%20Biz%C4%83u%20%3Cbizauionica%40gmail.com%3E%20(https%3A%2F%2Fionicabizau.net)&year=2015#license-mit\n[website]: https://ionicabizau.net\n[contributing]: /CONTRIBUTING.md\n[docs]: /DOCUMENTATION.md\n",
  "readmeFilename": "README.md",
  "repository": {
    "type": "git",
    "url": "git+ssh://git@github.com/IonicaBizau/parse-it.git"
  },
  "scripts": {
    "test": "node test"
  },
  "version": "1.0.9"
}
