{"_id":"@coolescoden/accounts","name":"@coolescoden/accounts","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@coolescoden/accounts","version":"1.0.0","main":"dist/index.js","scripts":{"build":"tsc"},"publishConfig":{"access":"public"},"keywords":[],"author":{"name":"Ben Siebert"},"license":"GPL-3.0-only","dependencies":{"@types/body-parser":"^1.19.2","@types/cors":"^2.8.12","@types/express":"^4.17.13","@types/nodemailer":"^6.4.4","body-parser":"^1.20.0","cors":"^2.8.5","express":"^4.17.3","mongoose":"^6.3.0","nodemailer":"^6.7.3","typescript":"^4.6.3"},"gitHead":"720e88fa4065f755102d34fb2fbff2b89e2ee3aa","description":"A simple account system using expressjs and mongodb.","_id":"@coolescoden/accounts@1.0.0","_nodeVersion":"16.8.0","_npmVersion":"7.21.0","dist":{"integrity":"sha512-sSzRnx+1PbnfMMorI0Kb+4At+qEZ8CgQ1JA6C08HjW7Bn4PBAwKH/UFoiS+JpsPQ95QmqU7rmBmZVvmSeDnyXA==","shasum":"5562f6a1ab0282cbc0bea0032d0c57b518120a27","tarball":"https://registry.npmjs.org/@coolescoden/accounts/-/accounts-1.0.0.tgz","fileCount":50,"unpackedSize":175293,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHn+PzU1b4QcTlKVf4/Gm0mY765nJQTxviy0Aa2j7qyqAiEA+EuCtIy4oU9Twe4cPqzoCQSFqaS0KhZL3+Ob/79q2fE="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiWo69ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrYrA//S110sR7FYAzb1PdK7I2uvMh81S6ot3HRPHsMOJ8VKemcEqaF\r\n4qd7Ek2iF4tPtvyj+QVF+0F9KrQjHwSWEC8OIfWtL2/zdB2r8OOMUcxIo3MW\r\nwQ4uLoopHz56XPkEogahSLotevaVTyfcAqp3A07gjlnmSvjjWLOGrzz2PGkf\r\n6l0xGgh4U4a9Wwv4lN54tMxavaZsjDD02ivLHldSYia4d3E7yw+pGpBPePLM\r\nxnwkRcA8Fk7bTDHiwAPza0IAfNL1BqXCsEEz4LeTvCft3j+5biMj4Qy0T120\r\npDsfWkEm/DmisgW+aaAmvA6iJQf5O4k13gz1D5s15bFGOVH/3Zcb7w6HNNH7\r\nUsD20ScCpKa0NaxuUaCC7NfQSymrD52A5iBucwwL+ln5oGaWt7rNiLqDip5D\r\n4FhCcaqoORhLQ5wYQ+jMpvT6y0/ZuWAYNNuYzNc5+3Tblh+rHYPDbbi550Er\r\nnNZn+ldI7y4ixhYzpa0LdD+4MNEzO+6BG4kzpvtN+eC4RUXHRlHg8V4vA5P0\r\nOMduZXeGBsirClgVOC5mCKlutp6OIrgtqUaLL03cOfEO7ZhW+USF2tDN55li\r\nLJx7TJMWHE2Ok7TO0AHaWdSs0hoIBkejwOH9edQwWkmdXoeep+fwJbziWePL\r\n0/s/crcuSp+0l+X9Pek3iJKM/ZQzZ7JPvac=\r\n=Arn3\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"mctzock","email":"dev@mctzock.de"},"directories":{},"maintainers":[{"name":"mctzock","email":"dev@mctzock.de"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/accounts_1.0.0_1650101949211_0.08543297005589956"},"_hasShrinkwrap":false}},"time":{"created":"2022-04-16T09:39:09.155Z","1.0.0":"2022-04-16T09:39:09.390Z","modified":"2022-04-16T09:39:09.533Z"},"maintainers":[{"name":"mctzock","email":"dev@mctzock.de"}],"description":"A simple account system using expressjs and mongodb.","keywords":[],"author":{"name":"Ben Siebert"},"license":"GPL-3.0-only","readme":"\n# @coolescoden/accounts\n\nA simple account system using expressjs and mongodb.\n\n\n\n\n## Installation\n\nFirst you need to install MongoDB from [here](https://www.mongodb.com/try/download/community)\n\nThen you need to install @coolescoden/accounts with npm or yarn\n\n```bash\n  npm install @coolescoden/accounts\n  # or\n  yarn add @coolescoden/accounts\n```\n\n## Usage/Examples\n\n```javascript\nconst express = require('express');\nconst {accounts} = require('@coolescoden/accounts');\n\nconst app = express();\n\naccounts({\n    app: app,\n    basePath: \"/api/v1\",\n    mongoUrl: \"mongodb://localhost:27017/accounts\",\n    smtp: {\n        host: \"smtp.my-hostname.com\",\n        port: 587,\n        secure: false,\n        auth: {\n            user: \"my@website.com\",\n            pass: \"MySeCuRePaSsWoRd\"\n        },\n        displayName: \"Sample Account System\"\n    }\n})\n\napp.listen(3000, () => {\n    console.log(\"Server running on 3000\")\n})\n\n\n```\n\n\n## Client for Web\n\nThere is a Client which you can use to execute tasks on the account system [here](https://github.com/coolescoden/accounts-client)\n## Authors\n\n- [@MCTzOCK](https://www.github.com/MCTzOCK)\n","readmeFilename":"README.md"}