{"_id":"bookshelf-uuid","_rev":"7-5f6d46bc75c002dab6dfd4dd0625edf5","name":"bookshelf-uuid","description":"Automatically generates UUID for your models","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"bookshelf-uuid","version":"1.0.0","description":"Automatically generates UUID for your models","main":"index.js","scripts":{"test":"standard && lab --verbose --colors --assert code --ignore __core-js_shared__","test-cov":"npm test -- -r console -o stdout -r html -o coverage/coverage.html -r lcov -o coverage/lcov.info","reset":"node -e 'require(\"./test/db\").reset().then(process.exit)'","knex":"knex --knexfile test/db/knexfile.js","migrate":"npm run knex -- migrate:latest","seed":"npm run knex -- seed:run"},"repository":{"type":"git","url":"git+https://github.com/estate/bookshelf-uuid.git"},"keywords":["bookshelf","knex","db","uuid","guid","v1","v4","uuidv4","uuidv1"],"author":{"name":"Estate","email":"team@tryestate.com"},"license":"MIT","bugs":{"url":"https://github.com/estate/bookshelf-uuid/issues"},"homepage":"https://github.com/estate/bookshelf-uuid#readme","dependencies":{"lodash.merge":"^4.3.5","lodash.result":"^4.3.0","uuid":"^2.0.2"},"devDependencies":{"bookshelf":"^0.9.4","co":"^4.6.0","code":"^2.2.0","knex":"^0.10.0","lab":"^10.3.1","sqlite":"0.0.4","sqlite3":"^3.1.3","standard":"^7.0.1"},"gitHead":"bd75a89c0686f9a7d843254a9330c8e096d8790f","_id":"bookshelf-uuid@1.0.0","_shasum":"ac1be98ef00ad465023a04c51192ea9094daa6c0","_from":".","_npmVersion":"3.8.6","_nodeVersion":"6.1.0","_npmUser":{"name":"alanhoff","email":"alanhoffmeister@gmail.com"},"dist":{"shasum":"ac1be98ef00ad465023a04c51192ea9094daa6c0","tarball":"https://registry.npmjs.org/bookshelf-uuid/-/bookshelf-uuid-1.0.0.tgz","integrity":"sha512-11rcF38pq4wdbi+ug5iGo61lTyr67vWAk3Ia5n8X6I36bs+MDJnA3AVh2qbVPE/JRNexsA9gUumUy0nYJSFSlg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB7LG1NkDyBObjTaKuq6gXy74jpTLfiryRMSHc21IOYUAiBtGBTD0JUMjg99k9DyhVWfrlfQ3D4pxNU7AxyDea3Blw=="}]},"maintainers":[{"name":"alanhoff","email":"alanhoffmeister@gmail.com"}],"_npmOperationalInternal":{"host":"packages-12-west.internal.npmjs.com","tmp":"tmp/bookshelf-uuid-1.0.0.tgz_1463065287444_0.2801372471731156"},"directories":{}},"1.0.1":{"name":"bookshelf-uuid","version":"1.0.1","description":"Automatically generates UUID for your models","main":"index.js","scripts":{"test":"standard && lab --verbose --colors --assert code --ignore __core-js_shared__","test-cov":"npm test -- -r console -o stdout -r html -o coverage/coverage.html -r lcov -o coverage/lcov.info","reset":"node -e 'require(\"./test/db\").reset().then(process.exit)'","knex":"knex --knexfile test/db/knexfile.js","migrate":"npm run knex -- migrate:latest","seed":"npm run knex -- seed:run"},"repository":{"type":"git","url":"git+https://github.com/estate/bookshelf-uuid.git"},"keywords":["bookshelf","knex","db","uuid","guid","v1","v4","uuidv4","uuidv1"],"author":{"name":"Estate","email":"team@tryestate.com"},"license":"MIT","bugs":{"url":"https://github.com/estate/bookshelf-uuid/issues"},"homepage":"https://github.com/estate/bookshelf-uuid#readme","dependencies":{"lodash.merge":"^4.6.2","lodash.result":"^4.3.0","uuid":"^2.0.2"},"devDependencies":{"bookshelf":"^0.9.4","co":"^4.6.0","code":"^2.2.0","knex":"^0.10.0","lab":"^10.3.1","sqlite":"0.0.4","sqlite3":"^3.1.3","standard":"^7.0.1"},"gitHead":"253004c8cdcdeb9180b6edecd06f7341f332d2ff","_id":"bookshelf-uuid@1.0.1","_nodeVersion":"11.11.0","_npmVersion":"6.7.0","dist":{"integrity":"sha512-T2RF4h5PHjDFFUNB4aMuHxKYFSJDuI7BvTL879NQgytz+eU/quf3xPz5HF3EbGL6b1u8WGlhrT0Hn2kHkCCH5Q==","shasum":"d0a0732db09493637c6eb8f792846403a25805b9","tarball":"https://registry.npmjs.org/bookshelf-uuid/-/bookshelf-uuid-1.0.1.tgz","fileCount":11,"unpackedSize":11039,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdK3YGCRA9TVsSAnZWagAAbVIQAKAS+XvZEqbeSE/ug12b\nV6RYmxP1+0CA700hoKs926kI6NTeH0Bt0m5IdlDgnxV89JCOKMaEMt3uy4/N\nSrMu4Y+3ZmjT8pMHC3qK8Rcv5h9StLLDq/6Gf16ia0AZxxspKJt8aiicmXYD\nW2gULH/fqC3eBl7lwsm73pKhkp1rAEIHqs/DupGc5bToAdUvgvKgJNscufCk\ntBvT9RlaHzpFOE2DhVuY7DXBkh267pBPFL4qKEUfHpaooiXc75l7KP7QWYmA\nglYOqA9xwbwdHBbUL4pQVtxXBEAumLSpqEQCIH7/RbVQQ/98RmW6IEBA5Qob\nhMODN95v30WsKe+42Z3ZRCzge8UN40VxGN+ZBCXNlIStN7pjBfbTVLPvUdRF\nrQ+oRIT91Nu1YUACACPDz5FSFW+RB4a+qHOxOh9nZ3kbucYfdHYF+Xe1Njqp\ni2x+pUQkylj8nl+3/1pIDxlwPICSxOXA7gmr1Zv3nqacs4PT16+Kq83fAh5u\nktOxAIfocEcQV+baOHgpKi6SlS094pLDeodQcOlLyx00AoAaWkvoStGsAAKK\nz7NUxKmeY3Ih3XabOzRDqiv66H4Vixjl/YRCP3s6uI2hYmKqZ7eWAQvQcZpN\n06LEe2oPOLrQc0YW3G6mMczsU1eeazuX3rg4abu7rwNS79ncXG/k8UrJD9zM\nbQZZ\r\n=Zv3p\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHESy+bbUcA9HdsdBK6R+6jKDEfwqi9d34JeRqoTlMOBAiEAmvfquwbfsDa3j05D91BN+79Kq4po/TJzlVF0pgyGvE0="}]},"maintainers":[{"email":"alanhoffmeister@gmail.com","name":"alanhoff"},{"email":"basil.siddiqui@gmail.com","name":"bsiddiqui"}],"_npmUser":{"name":"bsiddiqui","email":"basil.siddiqui@gmail.com"},"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/bookshelf-uuid_1.0.1_1563129349958_0.05710575244182681"},"_hasShrinkwrap":false}},"readme":"# bookshelf-uuid\n[![Build Status](https://circleci.com/gh/estate/bookshelf-uuid.svg?style=shield)](https://circleci.com/gh/estate/bookshelf-uuid)\n[![Code Climate](https://codeclimate.com/github/estate/bookshelf-uuid/badges/gpa.svg)](https://codeclimate.com/github/estate/bookshelf-uuid)\n[![Test Coverage](https://codeclimate.com/github/estate/bookshelf-uuid/badges/coverage.svg)](https://codeclimate.com/github/estate/bookshelf-uuid/coverage)\n[![Version](https://badge.fury.io/js/bookshelf-uuid.svg)](http://badge.fury.io/js/bookshelf-uuid)\n[![Downloads](http://img.shields.io/npm/dm/bookshelf-uuid.svg)](https://www.npmjs.com/package/bookshelf-uuid)\n\nAutomatically generate UUIDs for your models\n\n### Installation\n\nAfter installing `bookshelf-uuid` with `npm i --save bookshelf-uuid`,\nall you need to do is add it as a bookshelf plugin and enable it on your models.\n\n```javascript\nlet knex = require('knex')(require('./knexfile.js').development)\nlet bookshelf = require('bookshelf')(knex)\n\n// Add the plugin\nbookshelf.plugin(require('bookshelf-uuid'))\n\n// Enable it on your models\nlet User = bookshelf.Model.extend({ tableName: 'users', uuid: true })\n```\n\n### Usage\n\nNothing fancy here, just keep using bookshelf as usual.\n\n```javascript\n// This user is indestructible\nlet user = yield User.forge({ email: 'foo@bar' }).save()\nconsole.log(user.id) // 6b7a192f-6e1c-4dcb-8e57-14ab16d5fdf4\n```\n\n### Settings\n\n`bookshelf-uuid` generates UUIDs v4 by default, but you can easily switch to\nv1 UUIDs or a custom generator.\n\n```javascript\nbookshelf.plugin(require('bookshelf-uuid'), {\n  type: 'v1' // Or your own function\n})\n```\n\n### Testing\n\n```bash\ngit clone git@github.com:estate/bookshelf-uuid.git\ncd bookshelf-uuid && npm install && npm test\n```\n","maintainers":[{"email":"alanhoffmeister@gmail.com","name":"alanhoff"},{"email":"basil.siddiqui@gmail.com","name":"bsiddiqui"}],"time":{"modified":"2022-06-13T04:55:55.202Z","created":"2016-05-12T15:01:27.999Z","1.0.0":"2016-05-12T15:01:27.999Z","1.0.1":"2019-07-14T18:35:50.077Z"},"homepage":"https://github.com/estate/bookshelf-uuid#readme","keywords":["bookshelf","knex","db","uuid","guid","v1","v4","uuidv4","uuidv1"],"repository":{"type":"git","url":"git+https://github.com/estate/bookshelf-uuid.git"},"author":{"name":"Estate","email":"team@tryestate.com"},"bugs":{"url":"https://github.com/estate/bookshelf-uuid/issues"},"license":"MIT","readmeFilename":"README.md"}