{"_id":"graphql-type-decimal","_rev":"1-9bdf7631e630339a88a1a1e0067e19a4","name":"graphql-type-decimal","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"graphql-type-decimal","version":"1.0.0","description":"Decimal scalar type for GraphQL.js","main":"lib/index.js","scripts":{"build":"rimraf lib && babel src -d lib","lint":"eslint src test","prepublish":"npm run build"},"repository":{"type":"git","url":"git+https://github.com/sudhagars/graphql-type-decimal.git"},"keywords":["graphql","scalar","decimal"],"author":{"name":"Sudhagar @ Cleartax"},"license":"MIT","bugs":{"url":"https://github.com/sudhagars/graphql-type-decimal/issues"},"homepage":"https://github.com/sudhagars/graphql-type-decimal#readme","devDependencies":{"babel-cli":"latest","babel-eslint":"latest","babel-plugin-add-module-exports":"latest","babel-preset-env":"latest","cz-conventional-changelog":"latest","eslint":"latest","eslint-config-airbnb-base":"latest","eslint-plugin-import":"latest","rimraf":"latest"},"dependencies":{"bignumber.js":"^9.0.0","graphql":"^14.5.8"},"config":{"commitizen":{"path":"./node_modules/cz-conventional-changelog"}},"gitHead":"d91ef768ea862f8889c295b62b9e7f5b36458d8a","_id":"graphql-type-decimal@1.0.0","_nodeVersion":"12.11.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-/OtbSZzwuXLrfHQgA82UGti/SGdSJO3dcD67FZEfA/h/dMBu4UXCQYLBSxqxROLs53q3H6JsSCG0xtakFF+2OQ==","shasum":"86d13969208588bf66f5a26d69cf5e35c5800468","tarball":"https://registry.npmjs.org/graphql-type-decimal/-/graphql-type-decimal-1.0.0.tgz","fileCount":4,"unpackedSize":4717,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdnIQICRA9TVsSAnZWagAAzz4P+wRc3V7QUN058RndZQo9\n9locW59Msmqe8GSpUEVHVqmq5oABrFHX/p9glvQGkpnyQvpjy/CaZjb+n8IX\nmmde3ikqdM3ANvv9Eeit5Zgzq3DT8xba8igHjW5feFOal3b3KTd826p4X10T\nm8TfAPfCLAQ6Quz/3qqoxPOdJgM9qSvLwGfuIclzVVre7oWslr7GgStSHikC\nI7qjmJm2GTkdLfDl84uHhLO1+ZQ9YQQEFAg0gds8eZyMTDZ8SzXqzvSGFEte\nZdatSz0I+n31ayv1qyBmMtpNR7+eMy5rgk9idsJl4PtizjPrtLZIb/xbrJeN\nJyr8aMmZbog3jEa7v3znGjC3Nw8i1rGBZuo5GlhGIc3A1AjzYs2Bihxv0Oyz\nnlBKYVIuCQhtPhXDpO/h+3iFvmzUpskeb/tjWQaQBVoZuxxZZPeRmb5mtHgi\nuWCblMruThJAmEtQ1qjmFdmRqXmlT5tG0f0bXsSWwqIs9CBNNjqLan2ChZTr\nfCJcifxBz+9UcOYulMt98j05ryU6nyOUbpGNzxcNMsNqWoRh5cKtJiqd6RYx\nDyPmYwPgaB/v+FsWacw8oRWJK14cXOHfq76cn0e/HR3SJTf96ou13puGEH+0\nCSunZn7wTXr1NizmrknriVJCEcQZqWiW0mXx9q1BuGiRtvA9btBREIZobwst\nJRui\r\n=fY5k\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC1I2Eof4ak9U15n9o99Cy36yEVHK8N5eoPUPBNaLsxnwIhAJjwpAafq/l2wpNS3zwbG153FPjjlY85vtdHBVQgOLw7"}]},"maintainers":[{"name":"shotwhat","email":"sudhagar@isudhagar.in"}],"_npmUser":{"name":"shotwhat","email":"sudhagar@isudhagar.in"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/graphql-type-decimal_1.0.0_1570538503451_0.17295186854808686"},"_hasShrinkwrap":false}},"time":{"created":"2019-10-08T12:41:43.451Z","1.0.0":"2019-10-08T12:41:43.587Z","modified":"2022-05-04T03:21:45.881Z"},"maintainers":[{"name":"shotwhat","email":"sudhagar@isudhagar.in"}],"description":"Decimal scalar type for GraphQL.js","homepage":"https://github.com/sudhagars/graphql-type-decimal#readme","keywords":["graphql","scalar","decimal"],"repository":{"type":"git","url":"git+https://github.com/sudhagars/graphql-type-decimal.git"},"author":{"name":"Sudhagar @ Cleartax"},"bugs":{"url":"https://github.com/sudhagars/graphql-type-decimal/issues"},"license":"MIT","readme":"# graphql-type-decimal\n\nDecimal scalar type for [GraphQL.js](https://github.com/graphql/graphql-js) primarily for currencies.\n\nEx: `21.01`\n\n## Usage\n\nThis package exports a Decimal scalar GraphQL.js type:\n\n```js\nimport GraphQLDecimal from 'graphql-type-decimal';\n```\n\n### SDL with [GraphQL-tools](https://github.com/apollographql/graphql-tools)\n\nWhen using the SDL with GraphQL-tools, define `GraphQLDecimal` as the resolver for the appropriate scalar type in your schema:\n\n```js\nimport { makeExecutableSchema } from 'graphql-tools';\nimport GraphQLDecimal from 'graphql-type-decimal';\n\nconst typeDefs = `\nscalar Decimal\n\ntype MyType {\n  myField: Decimal\n}\n\n# ...\n`;\n\nconst resolvers = {\n  Decimal: GraphQLDecimal,\n};\n\nexport default makeExecutableSchema({ typeDefs, resolvers });\n```\n\n\n## Dependency\n\nThis library uses [bignumber.js](https://github.com/MikeMcl/bignumber.js/)\n\n## Related\n\nThis repository is inspired by [graphql-type-datetime](https://github.com/taion/graphql-type-json)\n","readmeFilename":"README.md"}