{"_id":"@apisandipas/supermodel","_rev":"1-f099e1187d405161168008639b92254b","name":"@apisandipas/supermodel","dist-tags":{"latest":"0.1.1"},"versions":{"0.1.1":{"name":"@apisandipas/supermodel","version":"0.1.1","description":"A Bookshelf.js base model with super powers","main":"index.js","author":{"name":"Bryan Paronto","email":"bparonto@gmail.com"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/apisandipas/bookshelf-supermodel.git"},"scripts":{"test":"jest"},"dependencies":{"@hapi/joi":"^14.3.1","bcryptjs":"^2.4.3","bookshelf-case-converter-plugin":"^1.0.0","bookshelf-virtuals-plugin":"^0.1.1","debug":"^4.1.1","lodash.difference":"^4.5.0","xtend":"^4.0.2"},"devDependencies":{"bookshelf":"^1.1.0","jest":"^25.1.0","jest-tobetype":"^1.2.3","knex":"^0.20.11","sqlite3":"^4.1.1"},"gitHead":"9e2a9ba7c95762f11d8bbc7931ca5eb0d6f3dc30","bugs":{"url":"https://github.com/apisandipas/bookshelf-supermodel/issues"},"homepage":"https://github.com/apisandipas/bookshelf-supermodel#readme","_id":"@apisandipas/supermodel@0.1.1","_nodeVersion":"13.8.0","_npmVersion":"6.13.6","_npmUser":{"name":"bparonto","email":"bparonto@gmail.com"},"dist":{"integrity":"sha512-uJYv6HPRwMhB5gczD9GbuXNq/e1SSV8b0Pd5xFlG88aJ7akte7L4kz4ts4YG26iV7tMBUEcvJlOx4zoGtblJzw==","shasum":"cb15f06ad762db8fd32198a61b5ebeb0a5574294","tarball":"https://registry.npmjs.org/@apisandipas/supermodel/-/supermodel-0.1.1.tgz","fileCount":14,"unpackedSize":32009,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZKAVCRA9TVsSAnZWagAAvasP/3i7oC61BQfJkQr61kZR\n94j940FVNsIhph9fFsjE9q4elEl16Eqlad2GxYO/9rwxQO7x1RNMYU80/POt\nYrcC7ZTjx8DUGsc1gHFIx/vo5oApP2J+szNVjJ4PcMm5V/Y/uEzs2Si57hVG\njZ8KXumJElDxvo+0u9WKbLuAZnigHiPBx3jAXc/2hrCWvGj310EktAFpMLnu\n6CO3NGXYrgTWNeNPVqLzgfo8f52UdBshhgCb06gzJTvqlNpWvTp3YL8iw6Pd\n25+R9lUpK7eA9v6rDdlGeO6mediEmpENpOlYXT5REtRReiosZM+ZBO5Wp9Ce\nTARZper/u4tb9SXReMv0Onoobg57P0Wj5RM2p6/xdy38FkjGOxj5D17O6DEC\nawRgiEedzT7po76sS7dYV0fLSyChvbhTTt0ht94GuYqbYzs6I8CVTLb9CPRD\nadYmP1oQGLXcUvpVLJJIzclHAPOLidusmAXqEOcqGkg61Ybsm0NvoYtwT0EB\nGkG6KlNdmi59htDo+Juv4xfwPNMxPeL5/qA5kpsjRdQ836j9QUvXW13ibWNi\n5OoSRDKyJB+Rd4xEFnOCumAJW0XXScF+e0sjqPZa8N/3QEASWsuZsq1FV4w1\n2Q97hPSNRSiUfKY7ZykSw2cL7UGhgrBkspvmqJOTp84Qyc7WN4LlUZ8UH1wc\nMhMq\r\n=Kzce\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvtbaXz2u/1A5KhNi2SgHJgPPoAxfoWfM4+Qf8d9xThQIgWejUNRhKOeMaUuAIgh/Jii+4lR2UMgJMLGda9mCJJWk="}]},"maintainers":[{"name":"bparonto","email":"bparonto@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/supermodel_0.1.1_1583652885062_0.8035780706850237"},"_hasShrinkwrap":false}},"time":{"created":"2020-03-08T07:34:44.805Z","0.1.1":"2020-03-08T07:34:45.307Z","modified":"2022-04-04T14:38:28.256Z"},"maintainers":[{"name":"bparonto","email":"bparonto@gmail.com"}],"description":"A Bookshelf.js base model with super powers","homepage":"https://github.com/apisandipas/bookshelf-supermodel#readme","repository":{"type":"git","url":"git+https://github.com/apisandipas/bookshelf-supermodel.git"},"author":{"name":"Bryan Paronto","email":"bparonto@gmail.com"},"bugs":{"url":"https://github.com/apisandipas/bookshelf-supermodel/issues"},"license":"MIT","readme":"# Bookshelf Supermodel\n\n## @apiasandipas/supermodel\n\nA [Bookshelf.js](https://github.com/tgriesser/bookshelf) base model class with super powers.\n\nI just found myself using several plugins and would find cases where they sometimes didnt play nicely. This is an effort to bring those plugins together to a single home that I can reuse.\n\n#### Installation\n\n`yarn add @apisandipas/supermodel`\n\nor\n\n`npm install @apisandipas/supermodel`\n\n### Features\n\n- Convenience CRUD methods: `findAll`, `findById`, `findOne`, `create`, `create`, `update`, `destroy`, `findOrCreate`, `upsert`\n- Opt-in secured password behavior with bcrypt password hashing and `authenticate` convenience method\n- Consumable as an extensible base class or as a Bookshelf plugin\n\n### Roadmap\n\n- [] Convert to Typescript?\n- [] Rollup build?\n\n### API\n\n- todo: document api here...\n\n### Inspiration\n\n- [bookshelf-modelbase](https://github.com/bsiddiqui/bookshelf-modelbase).\n- [bookshelf-secure-password](https://www.npmjs.com/package/bookshelf-secure-password)\n- [bookshelf-camelcase](https://www.npmjs.com/package/bookshelf-camelcase)\n","readmeFilename":"README.md"}