{"_id":"@alexandrelamberty/banking-lib-demo","name":"@alexandrelamberty/banking-lib-demo","dist-tags":{"latest":"0.3.3"},"versions":{"0.3.3":{"name":"@alexandrelamberty/banking-lib-demo","version":"0.3.3","description":"Banking Library Demo","author":{"name":"Alexandre Lamberty","email":"mail@alexandrelamberty.com","url":"https://alexandrelamberty.com/"},"license":"MIT","repository":{"type":"git","url":"git+https://github.com/alexandrelamberty/banking-lib-demo.git"},"keywords":["demo","lib","bank"],"main":"build/main/index.js","typings":"build/main/index.d.ts","module":"build/module/index.js","scripts":{"build":"run-p build:*","build:main":"tsc -p tsconfig.json","build:module":"tsc -p tsconfig.module.json","fix":"run-s fix:*","fix:prettier":"prettier \"src/**/*.ts\" --write","fix:lint":"eslint src --ext .ts --fix","test":"run-s build test:*","test:lint":"eslint src --ext .ts","test:prettier":"prettier \"src/**/*.ts\" --list-different","test:spelling":"cspell \"{README.md,.github/*.md,src/**/*.ts}\"","test:unit":"nyc ava --verbose","check-cli":"run-s test diff-integration-tests check-integration-tests","check-integration-tests":"run-s check-integration-test:*","diff-integration-tests":"mkdir -p diff && rm -rf diff/test && cp -r test diff/test && rm -rf diff/test/test-*/.git && cd diff && git init --quiet && git add -A && git commit --quiet --no-verify --allow-empty -m 'WIP' && echo '\\n\\nCommitted most recent integration test output in the \"diff\" directory. Review the changes with \"cd diff && git diff HEAD\" or your preferred git diff viewer.'","watch:build":"tsc -p tsconfig.json -w","watch:test":"nyc --silent ava --watch","cov":"run-s build test:unit cov:html cov:lcov && open-cli coverage/index.html","cov:html":"nyc report --reporter=html","cov:lcov":"nyc report --reporter=lcov","cov:send":"run-s cov:lcov && codecov","cov:check":"nyc report && nyc check-coverage --lines 100 --functions 100 --branches 100","doc":"run-s doc:html && open-cli build/docs/index.html","doc:html":"typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --out build/docs","doc:json":"typedoc src/ --exclude **/*.spec.ts --target ES6 --mode file --json build/docs/typedoc.json","doc:publish":"gh-pages -m \"[ci skip] Updates\" -d build/docs","version":"standard-version","reset-hard":"git clean -dfx && git reset --hard && npm i","prepare-release":"run-s reset-hard test cov:check doc:html version doc:publish"},"engines":{"node":">=10"},"dependencies":{"@bitauth/libauth":"^1.17.1"},"devDependencies":{"@ava/typescript":"^1.1.1","@istanbuljs/nyc-config-typescript":"^1.0.1","@typescript-eslint/eslint-plugin":"^4.0.1","@typescript-eslint/parser":"^4.0.1","@types/node":"14.6.2","ava":"^3.12.1","codecov":"^3.5.0","cspell":"^4.1.0","cz-conventional-changelog":"^3.3.0","eslint":"^7.8.0","eslint-config-prettier":"^6.11.0","eslint-plugin-eslint-comments":"^3.2.0","eslint-plugin-functional":"^3.0.2","eslint-plugin-import":"^2.22.0","gh-pages":"^3.1.0","npm-run-all":"^4.1.5","nyc":"^15.1.0","open-cli":"^6.0.1","prettier":"^2.1.1","standard-version":"^9.0.0","ts-node":"^9.0.0","typedoc":"^0.19.0","typescript":"^4.0.2"},"ava":{"failFast":true,"timeout":"60s","typescript":{"rewritePaths":{"src/":"build/main/"}},"files":["!build/module/**"]},"config":{"commitizen":{"path":"cz-conventional-changelog"}},"prettier":{"singleQuote":true},"nyc":{"extends":"@istanbuljs/nyc-config-typescript","exclude":["**/*.spec.js"]},"_id":"@alexandrelamberty/banking-lib-demo@0.3.3","gitHead":"af6c15d77dc196b0c5e3ee3f97d87d4f18729e88","bugs":{"url":"https://github.com/alexandrelamberty/banking-lib-demo/issues"},"homepage":"https://github.com/alexandrelamberty/banking-lib-demo#readme","_nodeVersion":"18.20.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-vpKG/aYvLE1acqDF1voxB/8rjYftpIyBM3upPPS3kjXS8swTOu6Jt0Xke/wgg6lo5FEKAotRTfRKFU+vzLJvfg==","shasum":"431035813255c28171215277621dffd82cbbd06d","tarball":"https://registry.npmjs.org/@alexandrelamberty/banking-lib-demo/-/banking-lib-demo-0.3.3.tgz","fileCount":28,"unpackedSize":52218,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHP6ImaDpbLVX6NIBvRcJZmkvrZgjo0egAxrTBdeXaM7AiEA+uyZ2sHcvyJr7q468Z+jniehJ8ERh7PPVJ0Wc65H954="}]},"_npmUser":{"name":"alexandrelamberty","email":"alexandrelamberty@gmail.com"},"directories":{},"maintainers":[{"name":"alexandrelamberty","email":"alexandrelamberty@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/banking-lib-demo_0.3.3_1714231854725_0.28927967191186976"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-27T15:30:54.643Z","0.3.3":"2024-04-27T15:30:54.887Z","modified":"2024-04-27T15:30:55.121Z"},"maintainers":[{"name":"alexandrelamberty","email":"alexandrelamberty@gmail.com"}],"description":"Banking Library Demo","homepage":"https://github.com/alexandrelamberty/banking-lib-demo#readme","keywords":["demo","lib","bank"],"repository":{"type":"git","url":"git+https://github.com/alexandrelamberty/banking-lib-demo.git"},"author":{"name":"Alexandre Lamberty","email":"mail@alexandrelamberty.com","url":"https://alexandrelamberty.com/"},"bugs":{"url":"https://github.com/alexandrelamberty/banking-lib-demo/issues"},"license":"MIT","readme":"# Banking Management Library Demo\n\nTypeScript library package demo for school. This project was created with [typescript-starter](https://github.com/bitjson/typescript-starter)\n\n## Usage\n\nInstall the library\n\n```shell\nnpm i @eevos/banking-demo\n```\n\nExample of creating a Person, CurrentAccount and Bank class instances.\n\n```ts\nimport {\n  Bank,\n  CurrentAccount,\n  Person,\n} from \"@eevos/banking-demo\";\n\n// Create a Person\nconst person = new Person(\"Doe\", \"John\", new Date(\"1978-04-12\"));\n\n// Create a CurrentAccount associated with the person created, set the credit line and make a deposit\nconst account = new CurrentAccount(\"000-111\", person);\naccount.creditLine = 20;\naccount.deposit(200);\n\n// Create a bank and add the account created\nconst bank = new Bank(\"My Bank\");\nbank.addAccount(account);\n```\n\nRead the docs: <https://alexandrelamberty.github.io/banking-lib-demo/>\n\n## Development\n\nClone the library and update the dependencies:\n\n```shell\ngit clone https://github.com/alexandrelamberty/banking-lib-demo \n```\n\nexecute:\n\n```shell\nnpm run watch:build \n```\n\nand / or\n\n```shell\nnpm run watch:test \n```\n\nthen start implementing features and adding tests...\n\n## Working locally with a project that use the library\n\nLink the library locally with:\n\n```shell\nnpm link\n```\n\nIn the main project that use the library, link the package library to the project:\n\n```shell\nnpm link @eevos/banking-demo\n```\n\nAnd use anything that will watch your code.\n\nCheckout this post <https://devimalplanet.com/how-to-build-and-run-typescript-watch-mode>\n\nThis will allow the live update of the package in the project that use it.\n\n## Tests\n\nSimply run\n\n```shell\nnpm run test:unit\n```\n","readmeFilename":"README.md"}