Skip to content

Commit

Permalink
move to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gltgrzegorz committed Jun 22, 2023
1 parent 463eeeb commit 1d522f5
Show file tree
Hide file tree
Showing 5 changed files with 10,020 additions and 6,741 deletions.
1 change: 1 addition & 0 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,4 @@ jobs:
cache: 'npm'
- run: npm ci
- run: npm test
- run: cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js
7 changes: 0 additions & 7 deletions .travis.yml

This file was deleted.

15 changes: 6 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,14 @@

[<img src="http://npm.packagequality.com/badge/loanjs.png" align="right"/>](http://packagequality.com/#?package=loanjs)
[![NPM version](https://badge.fury.io/js/loanjs.svg)](http://badge.fury.io/js/loanjs)
[![Build Status](https://travis-ci.org/kfiku/LoanJS.svg?branch=master)](https://travis-ci.org/kfiku/LoanJS) [![Dependency Status](https://david-dm.org/kfiku/LoanJS/dev-status.svg)](https://david-dm.org/kfiku/loanjs)
[![Coverage Status](https://coveralls.io/repos/github/kfiku/LoanJS/badge.svg)](https://coveralls.io/github/kfiku/LoanJS)
![core gzip size](http://img.badgesize.io/https://unpkg.com/loanjs@1.0.1/dist/loan.min.js?compression=gzip&label=core%20gzip%20size)

> Super **small** (**~500B**) and **fast** module to calculate loan in js (browser/node.js) for **equal**/**decreasing** installments, the **sum of interest**, etc.
[![Standard - JavaScript Style Guide](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard)

## Getting Started

Install the module with:
Install the module with:
```
npm install loanjs
```
Expand All @@ -32,7 +29,7 @@ var loan = new LoanJS.Loan(
true // diminishing
);
/** returns
{
{
installments : [
{
capital : number,
Expand Down Expand Up @@ -64,7 +61,7 @@ LoanJS.Loan(amount, installmentsNumber, interestRate, diminishing)

### Returns
```js
{
{
installments : [
{
capital : number,
Expand Down Expand Up @@ -102,7 +99,7 @@ Browser example:
<script src="../../dist/loanToHtmlTable.js"></script>
<script>
var loan = new LoanJS.Loan(1000, 12, 5, true);
var div = document.createElement("div");
div.innerHTML = LoanJS.loanToHtmlTable(loan); // loan rendering as html table string
document.body.appendChild(div);
Expand Down Expand Up @@ -135,13 +132,13 @@ Im open to contributors :).

#### 2014-11-10 v0.0.4
* update dependencies

#### 2014-11-10 v0.0.2
* now you can use it in node/browserify and browser



## License

Copyright (c) 2014 Grzegorz Klimek
Copyright (c) 2014 Grzegorz Klimek
Licensed under the MIT license.
Loading

0 comments on commit 1d522f5

Please sign in to comment.