{"_id":"@blueshift_ai/blueshift-js","_rev":"3-708fe6c7256dda6917730abba68fbf09","name":"@blueshift_ai/blueshift-js","dist-tags":{"latest":"0.1.0"},"versions":{"0.0.7":{"name":"@blueshift_ai/blueshift-js","version":"0.0.7","keywords":["event","tracking","blueshift","js"],"author":{"name":"Michael Ruescher","email":"michael@getblueshift.com"},"license":"MIT","_id":"@blueshift_ai/blueshift-js@0.0.7","maintainers":[{"name":"michael-bsft","email":"michael@getblueshift.com"},{"name":"amiya-tripathy-bsft","email":"amiya.tripathy@getblueshift.com"}],"homepage":"https://github.com/blueshift-labs/blueshift-js#readme","bugs":{"url":"https://github.com/blueshift-labs/blueshift-js/issues"},"dist":{"shasum":"4b6b0190e68b86f3b7e49cb1b8e94bf670d0c4d6","tarball":"https://registry.npmjs.org/@blueshift_ai/blueshift-js/-/blueshift-js-0.0.7.tgz","fileCount":11,"integrity":"sha512-1DEk67ACl7OBvgf1tO6rUSZT3iHkMbU9qcpR7pqC3M/eHQIXxWiswSv7jAdVSjmXtd2EZFuS9t8/p1Q0SVKzzg==","signatures":[{"sig":"MEQCIGosICLseseqdkCGhLX5RF3ESs86QmBxUfoAbtHIMOKAAiAVSmUn6gPaxh638kFPpsCF7ACKMq0/2XHWc+FqWtgqgg==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17553},"main":"dist/main.js","gitHead":"834965bdada847890a15d2f41d1cb346d12519fe","scripts":{"dev":"webpack serve --config webpack.dev.js --open","test":"jest","build":"webpack --config webpack.prod.js","test:watch":"jest --watch"},"_npmUser":{"name":"michael-bsft","email":"michael@getblueshift.com"},"repository":{"url":"git+https://github.com/blueshift-labs/blueshift-js.git","type":"git"},"_npmVersion":"10.8.3","description":"Event tracking library for the Blueshift marketing platform.","directories":{},"_nodeVersion":"22.9.0","dependencies":{"dotenv":"^16.1.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","path":"^0.12.7","webpack":"^5.86.0","webpack-cli":"^5.1.4","webpack-merge":"^5.9.0","dotenv-webpack":"^8.0.1","webpack-dev-server":"^4.15.1"},"_npmOperationalInternal":{"tmp":"tmp/blueshift-js_0.0.7_1738207947550_0.11363935664851654","host":"s3://npm-registry-packages-npm-production"}},"0.1.0":{"name":"@blueshift_ai/blueshift-js","version":"0.1.0","keywords":["event","tracking","blueshift","js"],"author":{"name":"Michael Ruescher","email":"michael@getblueshift.com"},"license":"MIT","_id":"@blueshift_ai/blueshift-js@0.1.0","maintainers":[{"name":"aniruddha-apte-blueshift","email":"aniruddha.apte@getblueshift.com"},{"name":"michael-bsft","email":"michael@getblueshift.com"},{"name":"amiya-tripathy-bsft","email":"amiya.tripathy@getblueshift.com"}],"homepage":"https://github.com/blueshift-labs/blueshift-js#readme","bugs":{"url":"https://github.com/blueshift-labs/blueshift-js/issues"},"dist":{"shasum":"0e0bc8f81e28d7295aae80f27f8333d3fce74625","tarball":"https://registry.npmjs.org/@blueshift_ai/blueshift-js/-/blueshift-js-0.1.0.tgz","fileCount":11,"integrity":"sha512-O6OV8ncyJYMlBtOHdpM7KpVXXcMT5sKukWEsjMVuisE767rSrr6g/+pkgaDNo6RYs6RmqZuVTS46AXVQxhPjdA==","signatures":[{"sig":"MEYCIQDgjjJK9fCJOokHPklmk7Md9SgpIzGCeNYSQpaIMFv3XgIhAO41rxC1xBwoJWYjd/6k2M9IYJPaFhNtsvL7Jg3n7J1H","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":17553},"main":"dist/main.js","gitHead":"139893683d52a4b124d6cfe3f2307c40eee41fbe","scripts":{"dev":"webpack serve --config webpack.dev.js --open","test":"jest","build":"webpack --config webpack.prod.js","test:watch":"jest --watch"},"_npmUser":{"name":"michael-bsft","email":"michael@getblueshift.com"},"repository":{"url":"git+https://github.com/blueshift-labs/blueshift-js.git","type":"git"},"_npmVersion":"10.8.3","description":"Event tracking library for the Blueshift marketing platform.","directories":{},"_nodeVersion":"22.9.0","dependencies":{"dotenv":"^16.1.4"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"jest":"^29.7.0","path":"^0.12.7","webpack":"^5.86.0","webpack-cli":"^5.1.4","webpack-merge":"^5.9.0","dotenv-webpack":"^8.0.1","webpack-dev-server":"^4.15.1"},"_npmOperationalInternal":{"tmp":"tmp/blueshift-js_0.1.0_1738208829868_0.1660496724883993","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-01-30T03:32:27.438Z","modified":"2025-02-05T11:35:44.492Z","0.0.7":"2025-01-30T03:32:27.745Z","0.1.0":"2025-01-30T03:47:10.072Z"},"bugs":{"url":"https://github.com/blueshift-labs/blueshift-js/issues"},"author":{"name":"Michael Ruescher","email":"michael@getblueshift.com"},"license":"MIT","homepage":"https://github.com/blueshift-labs/blueshift-js#readme","keywords":["event","tracking","blueshift","js"],"repository":{"url":"git+https://github.com/blueshift-labs/blueshift-js.git","type":"git"},"description":"Event tracking library for the Blueshift marketing platform.","maintainers":[{"email":"aniruddha.apte@getblueshift.com","name":"aniruddha-apte-blueshift"},{"email":"michael@getblueshift.com","name":"michael-bsft"},{"email":"amiya.tripathy@getblueshift.com","name":"amiya-tripathy-bsft"},{"email":"krishanu.ghosh@getblueshift.com","name":"krishanu-bsft"}],"readme":"# Blueshift-JS\n\nBlueshift-JS is a modernized, minimimalistic version of the original blueshift.js event tracking client for Blueshift customers to import and integrate into their builds. It is designed to be compatible in node and browser contexts, as well as cross platform build systems like Expo.\n\n## Getting Started\n\nClone the repository to your local machine, then run `npm install`\n\n## Development\n\nRun `npm run dev`\nA browser window will open at http://localhost:8080/ and live update anytime you modify the source code of the module.\n\n## Production Build\n\nTo build the module for production, run `npm run build`\n\nThis command will create a dist directory with a production-ready main.js file.\n\n## Loading\n\nYou can load the library in two ways:\n\n### In Node.js\n\nFirst, install the module `npm install blueshift-js`\nThen, require and use it in your application:\n\n```\nconst blueshift = require('blueshift-js');\n```\n\n### In the browser\n\nInclude the script in your HTML:\n\n```\n<script src=\"path-to-blueshift-js/main.js\"></script>\n```\n\n## Configuration\n\nYou can configure Blueshift-JS with environment variables. Create a .env file at the root of your project and add your API key and hostname:\n\n```\nAPI_KEY=your-api-key\nHOSTNAME=your-hostname\n```\n\nAlternatively you can also configure the client at runtime, via:\n\n```\nblueshift.initialize('your-api-key', 'your-hostname');\n```\n\n### Usage\n\nOnce loaded and configured, you use the blueshift module like so:\n\n```\nblueshift.track('test', { test: 'hello world' });\nblueshift.identify({ email: 'testuser@getblueshift.com' });\n```\n","readmeFilename":"README.md"}