{"_id":"@denkristoffer/babel-plugin-date-fns","_rev":"1-bb831ba74f8cec57d6324a466b8ad73c","name":"@denkristoffer/babel-plugin-date-fns","dist-tags":{"latest":"0.2.1"},"versions":{"0.2.1":{"name":"@denkristoffer/babel-plugin-date-fns","description":"## Install","keywords":["babel-plugin","cherry-pick","date-fns"],"version":"0.2.1","author":{"name":"Brian Ng","email":"bng412@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/date-fns/babel-plugin-date-fns.git"},"main":"lib/index.js","scripts":{"build":"rm -rf lib && babel src --out-dir lib","prepublish":"npm run build","test":"mocha --check-leaks --require @babel/register"},"dependencies":{"lodash.snakecase":"^4.1.1"},"devDependencies":{"@babel/cli":"^7.4.4","@babel/core":"^7.4.4","@babel/plugin-proposal-object-rest-spread":"^7.4.4","@babel/preset-env":"^7.4.4","@babel/register":"7.4.4","babel-plugin-tester":"^6.2.1","date-fns":"^1.29.0","mocha":"^5.2.0"},"gitHead":"9ed04bc0f3a1c7b2c3a69efee389a7d56bffe4a9","bugs":{"url":"https://github.com/date-fns/babel-plugin-date-fns/issues"},"homepage":"https://github.com/date-fns/babel-plugin-date-fns#readme","_id":"@denkristoffer/babel-plugin-date-fns@0.2.1","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"denkristoffer","email":"hello@kristoffer.is"},"dist":{"integrity":"sha512-I8c3F4dHlrgHo4OL7WX919eSe48Zwrof7g33+iOmO4xhsF/IWNg/Jc48/lafE8QCCIgFjoSY5hz8fYDmv2SLvg==","shasum":"8597bb0aafd6a187c4babfcdbdffc22312040268","tarball":"https://registry.npmjs.org/@denkristoffer/babel-plugin-date-fns/-/babel-plugin-date-fns-0.2.1.tgz","fileCount":4,"unpackedSize":4110,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc6nsJCRA9TVsSAnZWagAAjZIP/2AdmUhjodcOdqnfcWpe\nz28U6nrbXj15dzbbywTYLJx7Ur5OOFdmd2SggGvzh7ncxpX122RJhgotTVwQ\nUsgHvp97d+CLrQ5Rprj8pnUbbuaDRL2lnE0SA2HMktOIywcK8C5rXqLOhaLG\nH/tChudtrbn+5pfMcc4J0lkcTflM0018lIC1udEJxNXWpmoP1Yk0/OzpOsCS\n+vV6RQqtKrEIhKfwSiLdbr1C4eCmCyMILr9Ka8s1aiNLxPNu0p0+jhDuhO95\nyExrAoizQMGQnJlhCIKQ8KbyzM75lQY+ECqKgD/UkSbY29C7952OIR6uP2Mh\ngqw2k88o2Lt0T0s87ukp3o9rEh8UT3K2k4QykmEt8FxtZAWXjWeJkbY+qila\nxbbQPAhfipzYDdA1CcxqNY1jiPF6M2yU1HGKXZZQZs5YauAqZI1huaaq2mQJ\nBJhjav9uaV/cxM8swT25rdbzhVhurdX+t7N8ORhlQlf6x18A1FV4adW4aN/S\nmYV5Pq30hnVP97rkadrkDqWAL4G948wqMsUwWfiFq785KUTbt9uj5StQ63Wu\n1qmwXvysTgtBag9/eprRR8oM+VeomftSrdPg03MlHTaynTS5E9O6LrM65R6C\ntm2EDNISSBgYFiBsA9NI2D+nCPjWtiEyMrV65tgZjYrxS3u/OL532RQVkF7c\njSGT\r\n=0r+X\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAnpWoc//HQ2oA61N2uWuvlfwMYsGnbbmwHPSptlnM17AiAVRRJZiAz3A2tq1kbt30JDFXWA4gmu8UKxd9NQKyO6uA=="}]},"maintainers":[{"name":"denkristoffer","email":"hello@kristoffer.is"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/babel-plugin-date-fns_0.2.1_1558870792805_0.7368244594932443"},"_hasShrinkwrap":false}},"time":{"created":"2019-05-26T11:39:52.773Z","0.2.1":"2019-05-26T11:39:52.989Z","modified":"2022-04-05T03:45:13.908Z"},"maintainers":[{"name":"denkristoffer","email":"hello@kristoffer.is"}],"description":"## Install","homepage":"https://github.com/date-fns/babel-plugin-date-fns#readme","keywords":["babel-plugin","cherry-pick","date-fns"],"repository":{"type":"git","url":"git+https://github.com/date-fns/babel-plugin-date-fns.git"},"author":{"name":"Brian Ng","email":"bng412@gmail.com"},"bugs":{"url":"https://github.com/date-fns/babel-plugin-date-fns/issues"},"license":"MIT","readme":"# babel-plugin-date-fns\n\n## Install\n\n```shell\n$ npm i --save date-fns\n$ npm i --save-dev babel-plugin-date-fns\n```\n\n## Example\n\nTransforms\n\n```js\nimport { distanceInWordsToNow, differenceInYears, format } from 'date-fns';\n```\n\nroughly to\n\n```js\nimport distanceInWordsToNow from 'date-fns/distanceInWordsToNow';\nimport differenceInYears from 'date-fns/differenceInYears';\nimport format from 'date-fns/format';\n```\n\n## Usage\n\n### .babelrc\n\n```json\n{\n  \"plugins\": [\"date-fns\"],\n  \"presets\": [\"es2015\"]\n}\n```\n\n### Webpack 2\n\n```js\nmodule: {\n  rules: [{\n    test: /\\.js$/,\n    exclude: /node_modules/,\n    use: {\n      loader: 'babel-loader',\n      presets: ['es2015'],\n      plugins: ['date-fns'],\n    },\n  }],\n}\n```\n\n## Thanks\n\nHeavily inspired by [babel-plugin-lodash](https://github.com/lodash/babel-plugin-lodash)\nand [babel-plugin-recharts](https://github.com/recharts/babel-plugin-recharts).\n","readmeFilename":"README.md"}