{ "name": "loanjs", "version": "1.1.2", "main": "LoanJS.js", "description": "Calculate loan in js (browser/node.js) for equal installments, installments decreasing, the sum of interest, etc.", "homepage": "https://github.com/kfiku/LoanJS", "bugs": "https://github.com/kfiku/loanjs/issues", "author": { "name": "Grzegorz Klimek", "email": "kfiku.com@gmail.com", "url": "https://github.com/kfiku" }, "repository": { "type": "git", "url": "https://github.com/kfiku/loanjs" }, "types": "types.d.ts", "license": "MIT", "files": [ "dist", "lib", "LoanJS.js", "types.d.ts" ], "keywords": [ "loanjs", "nodejs", "loan", "calculator", "loan-calculator", "js", "installments", "interest", "annuity", "annuity-due", "due", "diminishing" ], "devDependencies": { "@babel/cli": "^7.22.9", "@babel/core": "^7.22.9", "@babel/preset-env": "^7.22.9", "@types/jest": "^29.5.3", "@types/node": "^20.4.4", "babel-jest": "^29.6.1", "jest": "~29.6.1", "rollup": "~3.26.3", "standard": "~17.1.0", "typescript": "^5.1.5", "uglify-js": "~3.17.4" }, "scripts": { "test": "npm run lint && npm run test:node && npm run test:cover", "test:unit": "jest", "test:node": "node ./nodeTest.js", "test:cover": "jest --coverage", "test:watch": "jest --coverage --watchAll", "lint": "npm run lint:standard && npm run lint:tsc", "lint:standard": "standard lib/*.js nodeTest.js", "lint:tsc": "tsc --noEmit", "fix": "npm run lint:standard -- --fix", "clean": "rm -rf dist coverage", "build": "npm run clean && npm run build:loan && npm run build:loanToHtml && npm run min", "build:loan": "rollup lib/loan.js --name loan --format umd --file dist/loan.js && babel -o dist/loan.js dist/loan.js", "build:loanToHtml": "rollup lib/loanToHtmlTable.js --name loanToHtmlTable --format umd --file dist/loanToHtmlTable.js && babel -o dist/loanToHtmlTable.js dist/loanToHtmlTable.js", "min": "npm run min:loan && npm run min:loanToHtml", "min:loan": "uglifyjs dist/loan.js -c -m -o dist/loan.min.js", "min:loanToHtml": "uglifyjs dist/loanToHtmlTable.js -c -m -o dist/loanToHtmlTable.min.js" } }