{"_id":"moltin","_rev":"27-3d51e9c9ba584d0fcd13cadf61d6abc3","name":"moltin","description":"SDK for the Moltin eCommerce API","dist-tags":{"latest":"2.2.0","legacy":"1.0.5"},"versions":{"1.0.0":{"name":"moltin","description":"SDK for the Moltin eCommerce API","version":"1.0.0","homepage":"https://github.com/moltin/js-sdk","author":{"name":"Moltin Team","url":"https://molt.in/"},"main":"dist/moltin.nodejs.min.js","repository":{"type":"git","url":"git://github.com/moltin/js-sdk.git"},"bugs":{"url":"https://github.com/moltin/js-sdk/issues"},"licenses":[{"type":"MIT","url":"https://github.com/moltin/js-sdk/blob/master/LICENSE"}],"devDependencies":{"grunt":"~0.4.5","grunt-aws-s3":"^0.13.0","grunt-contrib-coffee":"~0.10.0","grunt-contrib-compress":"~0.13.0","grunt-contrib-copy":"^0.8.0","grunt-contrib-jshint":"~0.10.0","grunt-contrib-uglify":"~0.4.0","grunt-contrib-watch":"~0.2.0","grunt-preprocess":"~5.0.0","grunt-replace":"~0.11.0","grunt-karma":"~0.8.3","grunt-rename":"^0.1.4"},"gitHead":"0c6354d343e07a6c59919ceac757bb4c59505776","_id":"moltin@1.0.0","scripts":{},"_shasum":"c21a68aea249aece1a6bb2f267452813641f2652","_from":".","_npmVersion":"2.10.1","_nodeVersion":"0.12.4","_npmUser":{"name":"moltin","email":"accounts@moltin.com"},"dist":{"shasum":"c21a68aea249aece1a6bb2f267452813641f2652","tarball":"https://registry.npmjs.org/moltin/-/moltin-1.0.0.tgz","integrity":"sha512-A99XWw2woB3xtzViSXF8KFrnD2CyaLTxxAWveQJzPGOpAVcTXh1vN68pHHdVKiz8UcBwrPEoD+Qu0YW4wdmKxA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDWsZW7P8UIL5dvF7PChn0FMJVGTUfvtBKUzr/8sIAxJAIgbxLHLpPbecqnHx0pHREl4srNQDGbkgi0INgmAx6rai0="}]},"maintainers":[{"name":"moltin","email":"accounts@moltin.com"}],"directories":{},"deprecated":"This package is deprecated and no longer updated. Please install from @moltin/sdk"},"1.0.3":{"name":"moltin","description":"SDK for the Moltin eCommerce API","version":"1.0.3","homepage":"https://github.com/moltin/js-sdk","author":{"name":"Moltin Team","url":"https://moltin.com/"},"main":"dist/moltin.nodejs.min.js","repository":{"type":"git","url":"git://github.com/moltin/js-sdk.git"},"bugs":{"url":"https://github.com/moltin/js-sdk/issues"},"licenses":[{"type":"MIT","url":"https://github.com/moltin/js-sdk/blob/master/LICENSE"}],"devDependencies":{"grunt":"~0.4.5","grunt-aws-s3":"^0.13.0","grunt-contrib-coffee":"~0.10.0","grunt-contrib-compress":"~0.13.0","grunt-contrib-copy":"^0.8.0","grunt-contrib-jshint":"~0.10.0","grunt-contrib-uglify":"~0.4.0","grunt-contrib-watch":"~0.2.0","grunt-preprocess":"~5.0.0","grunt-replace":"~0.11.0","grunt-karma":"~0.8.3","grunt-rename":"^0.1.4"},"gitHead":"ac6c757d2d1032799b0269535f9383e5ca18f6c5","_id":"moltin@1.0.3","scripts":{},"_shasum":"bfdddaee95dfc07bd9039291aebc9a5a0c95e527","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"moltin","email":"support@moltin.com"},"dist":{"shasum":"bfdddaee95dfc07bd9039291aebc9a5a0c95e527","tarball":"https://registry.npmjs.org/moltin/-/moltin-1.0.3.tgz","integrity":"sha512-7LBeLc1kOmzA8Di+NHCLpGC8d8P19jqNJmWdQ+Axe8EQMIpox/ifz6/D7gd1ISsuK8KnLerGF5S+rKnQ3VDjoA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICOgdjip2U6w5eTTnUhP2RheKUEZ5RBG+ENg6MoifcZGAiBB5wlPqzY8XjLhEvZmE/XpyqSQApcCItisf7OAu2wbZQ=="}]},"maintainers":[{"name":"moltin","email":"accounts@moltin.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/moltin-1.0.3.tgz_1464172662335_0.8139470620080829"},"directories":{},"deprecated":"This package is deprecated and no longer updated. Please install from @moltin/sdk"},"1.0.4":{"name":"moltin","description":"SDK for the Moltin eCommerce API","version":"1.0.4","homepage":"https://github.com/moltin/js-sdk","author":{"name":"Moltin Team","url":"https://moltin.com/"},"main":"dist/moltin.nodejs.min.js","repository":{"type":"git","url":"git://github.com/moltin/js-sdk.git"},"bugs":{"url":"https://github.com/moltin/js-sdk/issues"},"licenses":[{"type":"MIT","url":"https://github.com/moltin/js-sdk/blob/master/LICENSE"}],"devDependencies":{"grunt":"~0.4.5","grunt-aws-s3":"^0.13.0","grunt-contrib-coffee":"~0.10.0","grunt-contrib-compress":"~0.13.0","grunt-contrib-copy":"^0.8.0","grunt-contrib-jshint":"~0.10.0","grunt-contrib-uglify":"~0.4.0","grunt-contrib-watch":"~0.2.0","grunt-preprocess":"~5.0.0","grunt-replace":"~0.11.0","grunt-karma":"~0.8.3","grunt-rename":"^0.1.4"},"gitHead":"ca26fcac9c95cc81127d8c42d9b45f72cf63db79","_id":"moltin@1.0.4","scripts":{},"_shasum":"bf5445d2b23b0350e00d63e1c680aac0d0780975","_from":".","_npmVersion":"2.14.7","_nodeVersion":"4.2.2","_npmUser":{"name":"moltin","email":"support@moltin.com"},"dist":{"shasum":"bf5445d2b23b0350e00d63e1c680aac0d0780975","tarball":"https://registry.npmjs.org/moltin/-/moltin-1.0.4.tgz","integrity":"sha512-OYTO4UCr5//8OAbnTEa42KngAA5F55t/DHcvcKpigStGySZJCvl0TivjueQSEGcONbOxWoRE1Uwu23Gl3+7h7Q==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDU308B2AxyV/4ogQiexL8rW+Bum8qjSC0VJUmQXzHIvAiEAjtJviIAh+DMXP4ONrGwpm6u09sQw1YrHH9toUhMlVCM="}]},"maintainers":[{"name":"moltin","email":"accounts@moltin.com"}],"_npmOperationalInternal":{"host":"packages-16-east.internal.npmjs.com","tmp":"tmp/moltin-1.0.4.tgz_1469093204742_0.6147143938578665"},"directories":{},"deprecated":"This package is deprecated and no longer updated. Please install from @moltin/sdk"},"1.0.5":{"name":"moltin","description":"SDK for the Moltin eCommerce API","version":"1.0.5","homepage":"https://github.com/moltin/js-sdk","author":{"name":"Moltin Team","url":"https://moltin.com/"},"main":"dist/moltin.nodejs.min.js","repository":{"type":"git","url":"git://github.com/moltin/js-sdk.git"},"bugs":{"url":"https://github.com/moltin/js-sdk/issues"},"licenses":[{"type":"MIT","url":"https://github.com/moltin/js-sdk/blob/master/LICENSE"}],"devDependencies":{"grunt":"~0.4.5","grunt-aws-s3":"^0.13.0","grunt-contrib-coffee":"~0.10.0","grunt-contrib-compress":"~0.13.0","grunt-contrib-copy":"^0.8.0","grunt-contrib-jshint":"~0.10.0","grunt-contrib-uglify":"~0.4.0","grunt-contrib-watch":"~0.2.0","grunt-preprocess":"~5.0.0","grunt-replace":"~0.11.0","grunt-karma":"~0.8.3","grunt-rename":"^0.1.4"},"gitHead":"0293191729fa38d4deb88324b1fdb6e970192691","_id":"moltin@1.0.5","scripts":{},"_shasum":"d8948eae319e2ff180e898d8da75a9ee4149d6d8","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"moltin-npm","email":"support@moltin.com"},"dist":{"shasum":"d8948eae319e2ff180e898d8da75a9ee4149d6d8","tarball":"https://registry.npmjs.org/moltin/-/moltin-1.0.5.tgz","integrity":"sha512-V5G6Su2xbUbTJ9QmmkAyfs/1Ulv1kzDuwwHVqiB/FIb3DXclj5vmEINqOgphE4DewVZ9zTtaVbBRebFimchvyA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEjcM+n6vUVmHWWy72uuFB6big8XMo440sOVQ5LehxsEAiAhqdj5+Ng8LrE9wQUQzbwLHNRW5wq4Aoaz5aVzIjh9Tw=="}]},"maintainers":[{"name":"moltin-npm","email":"support@moltin.com"},{"name":"ynnoj","email":"jonathan@steele.pro"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/moltin-1.0.5.tgz_1483444943616_0.2613151050172746"},"directories":{},"deprecated":"This package is deprecated and no longer updated. Please install from @moltin/sdk"},"2.0.0":{"name":"moltin","description":"SDK for the Moltin eCommerce API","version":"2.0.0","homepage":"https://github.com/moltin/js-sdk","author":{"name":"Moltin Team","url":"https://moltin.com/"},"scripts":{"roll:cjs":"rollup -c rollup/cjs.config.js","roll:iife":"rollup -c rollup/iife.config.js","build":"npm run roll:cjs && npm run roll:iife","test":"npm run build && mocha test/unit/* || true"},"main":"dist/moltin.cjs.js","jsnext:main":"src/moltin.js","module":"src/moltin.js","browser":"dist/moltin.js","repository":{"type":"git","url":"git://github.com/moltin/js-sdk.git"},"bugs":{"url":"https://github.com/moltin/js-sdk/issues"},"licenses":[{"type":"MIT","url":"https://github.com/moltin/js-sdk/blob/master/LICENSE"}],"devDependencies":{"chai":"^3.5.0","mocha":"^3.2.0","nock":"^9.0.2","rollup":"^0.36.4","rollup-plugin-buble":"^0.14.0","rollup-plugin-commonjs":"^5.0.5","rollup-plugin-node-resolve":"^2.0.0","rollup-plugin-uglify":"^1.0.1"},"dependencies":{"es6-promise":"^4.0.5","fetch-everywhere":"^1.0.5","node-localstorage":"^1.3.0"},"gitHead":"09354059c77155a5d60528672faba888f702af0e","_id":"moltin@2.0.0","_shasum":"6666f57bbc83e546dd3ab88f813deb0e91d5125b","_from":".","_npmVersion":"3.10.3","_nodeVersion":"6.5.0","_npmUser":{"name":"ynnoj","email":"jonathan@steele.pro"},"dist":{"shasum":"6666f57bbc83e546dd3ab88f813deb0e91d5125b","tarball":"https://registry.npmjs.org/moltin/-/moltin-2.0.0.tgz","integrity":"sha512-EPgIECeIuouXdPdRvD08pbf8r/rJ5/+9lq5RfX96qxbGfIxzyFlNGve6PnejHNfltH/rGu8yQWltTVYSCsUBUQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCb2Y65Z6XrSUwBKc83Sep624TVK7ets8FFpjCGYhyK8QIgZXmWGkgvmfPhhVzj+kWYhXL5N3A3PklMtsuoFGNOBWg="}]},"maintainers":[{"name":"moltin-npm","email":"support@moltin.com"},{"name":"ynnoj","email":"jonathan@steele.pro"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/moltin-2.0.0.tgz_1483456156879_0.7776561174541712"},"directories":{},"deprecated":"This package is deprecated and no longer updated. Please install from @moltin/sdk"},"2.1.0":{"name":"moltin","description":"SDK for the Moltin eCommerce API","version":"2.1.0","homepage":"https://github.com/moltin/js-sdk","author":{"name":"Moltin Team","url":"https://moltin.com/"},"scripts":{"roll:cjs":"rollup -c rollup/cjs.config.js","build":"npm run roll:cjs","test":"npm run build && mocha test/unit/* || true"},"main":"dist/moltin.cjs.js","module":"src/moltin.js","cjs:main":"dist/moltin.cjs.js","repository":{"type":"git","url":"git://github.com/moltin/js-sdk.git"},"bugs":{"url":"https://github.com/moltin/js-sdk/issues"},"licenses":[{"type":"MIT","url":"https://github.com/moltin/js-sdk/blob/master/LICENSE"}],"devDependencies":{"@krux/condition-jenkins":"^1.0.1","chai":"^3.5.0","eslint":"^3.19.0","eslint-config-airbnb-base":"^11.1.3","eslint-plugin-import":"^2.2.0","mocha":"^3.2.0","nock":"^9.0.2","rollup":"^0.36.4","rollup-plugin-buble":"^0.14.0","rollup-plugin-commonjs":"^5.0.5","rollup-plugin-node-resolve":"^2.0.0","rollup-plugin-uglify":"^1.0.1"},"dependencies":{"es6-promise":"^4.0.5","fetch-everywhere":"^1.0.5","inflected":"^2.0.1","node-localstorage":"^1.3.0"},"release":{"branch":"master","verifyConditions":{"path":"./node_modules/@krux/condition-jenkins"}},"gitHead":"2041225443be9844d1b9c158312c69df28715060","_id":"moltin@2.1.0","_shasum":"2be368937d48a8b7f75da6482768d772dfb97a9c","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"ynnoj","email":"jonathan@steele.pro"},"dist":{"shasum":"2be368937d48a8b7f75da6482768d772dfb97a9c","tarball":"https://registry.npmjs.org/moltin/-/moltin-2.1.0.tgz","integrity":"sha512-aUlSrbPksLvd2bpAJrpdf8WZ3X7daPnLz59xIGJl8zzgztQ6SeRY7X+IK801aYsb+2awVb9bbZTUmIukBuVWtQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAUIOsFmIjku9cPEZYtAuw7bwbYgLCjJ+0VKdIN7GOMwAiEA+2iepqTA1vsebOwpSjWu1ktze8fjyUZfUZ2huPP6Gy4="}]},"maintainers":[{"name":"ynnoj","email":"jonathan@steele.pro"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/moltin-2.1.0.tgz_1493920367097_0.5733388226944953"},"deprecated":"This package is deprecated and no longer updated. Please install from @moltin/sdk"},"2.2.0":{"name":"moltin","description":"SDK for the Moltin eCommerce API","version":"2.2.0","homepage":"https://github.com/moltin/js-sdk","author":{"name":"Moltin Team","url":"https://moltin.com/"},"scripts":{"roll:cjs":"rollup -c rollup/cjs.config.js","build":"npm run roll:cjs","test":"npm run build && mocha test/unit/*"},"main":"dist/moltin.cjs.js","module":"src/moltin.js","cjs:main":"dist/moltin.cjs.js","repository":{"type":"git","url":"git://github.com/moltin/js-sdk.git"},"bugs":{"url":"https://github.com/moltin/js-sdk/issues"},"licenses":[{"type":"MIT","url":"https://github.com/moltin/js-sdk/blob/master/LICENSE"}],"devDependencies":{"@krux/condition-jenkins":"^1.0.1","chai":"^3.5.0","eslint":"^3.19.0","eslint-config-airbnb-base":"^11.1.3","eslint-plugin-import":"^2.2.0","mocha":"^3.2.0","nock":"^9.0.2","rollup":"^0.36.4","rollup-plugin-buble":"^0.14.0","rollup-plugin-commonjs":"^5.0.5","rollup-plugin-node-resolve":"^2.0.0","rollup-plugin-uglify":"^1.0.1"},"dependencies":{"es6-promise":"^4.0.5","fetch-everywhere":"^1.0.5","inflected":"^2.0.1","node-localstorage":"^1.3.0"},"release":{"branch":"master","verifyConditions":{"path":"./node_modules/@krux/condition-jenkins"}},"gitHead":"ce27b0b13016daf019c81a681a4167a09b04fd4f","_id":"moltin@2.2.0","_shasum":"e507ad0bd7d55bb6ae8ce65953ad795aaf9028fb","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"ynnoj","email":"jonathan@steele.pro"},"dist":{"shasum":"e507ad0bd7d55bb6ae8ce65953ad795aaf9028fb","tarball":"https://registry.npmjs.org/moltin/-/moltin-2.2.0.tgz","integrity":"sha512-cN0pW7WaP+JYHI/4tnEwNbbCXbK5f/KZyhohhpwcbnCDUqtJ6iH7xuyHFLGQW/B2jLsEb0bN9piGlnmfl/Luqw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDzMq7Bq91C8GDkLzutxBjxTSmQJIWiDZ0RqQvMJybhTwIhAJtZFqrCwd3za39W0QltOFxFx+hqcypg0CZNEmIw18mS"}]},"maintainers":[{"name":"ynnoj","email":"jonathan@steele.pro"}],"_npmOperationalInternal":{"host":"packages-18-east.internal.npmjs.com","tmp":"tmp/moltin-2.2.0.tgz_1494248324944_0.6574770996812731"},"deprecated":"This package is deprecated and no longer updated. Please install from @moltin/sdk"}},"readme":"# Moltin JavaScript SDK\n\n> The Moltin Javascript SDK is a simple to use interface for the Moltin eCommerce API to help you get off the ground quickly and efficiently within client and server applications.\n\n[Wiki](https://github.com/moltin/js-sdk/wiki) &mdash; [API docs](https://moltin.api-docs.io/v2) &mdash; [moltin.com](https://moltin.com)\n\n## Installation\n\n```bash\nnpm install --save moltin\n```\n\n#### JavaScript\n\n```js\nimport { gateway as MoltinGateway } from 'moltin';\n```\n\n#### Node.js\n\n```js\nconst moltin = require('moltin');\n```\n\n## Usage\n\nTo get started, instantiate a new Moltin client with your store credentials.\n\n> **Note:** This requires a [Moltin](http://moltin.com) account.\n\n#### JavaScript\n\n```js\nconst Moltin = MoltinGateway({\n  client_id: 'XXX'\n});\n```\n\n> **Note:** If you're using [webpack](https://webpack.github.io), you'll need to add the following to your projects configuration file.\n\n```\nnode: {\n  fs: 'empty'\n}\n```\n\n#### Node.js\n\n```js\nconst Moltin = moltin.gateway({\n  client_id: 'XXX',\n  client_secret: 'XXX',\n});\n```\n\nYou can now authenticate with the Moltin service.\n\n```js\nMoltin.Authenticate().then((response) => {\n  console.log('authenticated', response);\n});\n```\n\nCheck out the [wiki](https://github.com/moltin/js-sdk/wiki) to learn more about authenticating and the available endpoints.\n\n\n## Development\n\nThe SDK is built with [ES6 modules](https://strongloop.com/strongblog/an-introduction-to-javascript-es6-modules/) that are bundled into Node and browser compatible files using [Rollup](http://rollupjs.org).\n\nIf you want to roll your own bundle, or make changes to any of the modules in `src`, then you'll need to install the package dependencies and build the `dist` files.\n\n```\nnpm install\nnpm run build\n```\n\nYou can learn more about Rollup, the API and configuration  [here](https://github.com/rollup/rollup/wiki).\n","maintainers":[],"time":{"modified":"2022-06-20T05:02:23.144Z","created":"2015-11-16T10:00:32.472Z","1.0.0":"2015-11-16T10:00:32.472Z","1.0.3":"2016-05-25T10:37:43.675Z","1.0.4":"2016-07-21T09:26:46.437Z","1.0.5":"2017-01-03T12:02:26.032Z","2.0.0":"2017-01-03T15:09:19.004Z","2.1.0":"2017-05-04T17:52:47.720Z","2.2.0":"2017-05-08T12:58:45.508Z"},"homepage":"https://github.com/moltin/js-sdk","repository":{"type":"git","url":"git://github.com/moltin/js-sdk.git"},"author":{"name":"Moltin Team","url":"https://moltin.com/"},"bugs":{"url":"https://github.com/moltin/js-sdk/issues"},"readmeFilename":"README.md"}