1.1.3 • Published 1 year ago

proximys-inheritance v1.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

islamic-inheritance-calculator

NB: This a work in progress. if you spot an error in calculations, then please file an issue

install

$ npm i proximys-inheritance

usage

import { defaultHeirs, calculate } from 'proximys-inheritance'

function printResults(results) {
  const fractionToString = r => ({ ...r, share: r.share.toFraction() })
  console.log(results.map(fractionToString))
}

const result = calculate({ wife: 3, son: 1, daughter: 1 })
printResuls(result)
//=> [
//     { name: 'wife',     count: 3, type: 'fard',  share: '1/8'  },
//     { name: 'son',      count: 1, type: 'tasib', share: '7/12' },
//     { name: 'daughter', count: 1, type: 'tasib', share: '7/24' }
//   ]
1.1.1

1 year ago

1.0.2

1 year ago

1.1.0

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.1.3

1 year ago

1.0.4

1 year ago

1.1.2

1 year ago

1.0.3

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago