Comparing version 0.1.0 to 0.1.1
@@ -5,3 +5,3 @@ { | ||
"author": "Luciano Mammino <no@spam.com> (https://loige.co)", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "type": "git", |
@@ -8,3 +8,3 @@ # Financial | ||
A Zero-Dependency TypeScript / JavaScript financial utility library inspired by [numpy-financial](https://github.com/numpy/numpy-financial/) that can be used on both Node.js and the browser. | ||
A Zero-Dependency TypeScript / JavaScript financial utility library inspired by [numpy-financial](https://github.com/numpy/numpy-financial/) that can be used on **Node.js**, **Deno** and **the browser**. | ||
@@ -83,2 +83,14 @@ It does support the same functionality offered by `numpy-financial` but it only support scalar values (no numpy-like array values) and it does not support decimal values. | ||
### Use with Deno | ||
Make sure you specify the version you prefer in the import URL: | ||
```typescript | ||
import { assertEquals } from 'https://deno.land/std/testing/asserts.ts' | ||
import * as f from 'https://deno.land/x/npm:financial@0.1.1/src/financial.ts' | ||
assertEquals(f.fv(0.05 / 12, 10 * 12, -100, -100), 15692.928894335755) | ||
``` | ||
## Implemented functions | ||
@@ -109,2 +121,11 @@ | ||
### Test with Deno | ||
To test with Deno, run: | ||
```bash | ||
deno test test/deno.ts | ||
``` | ||
## Contributing | ||
@@ -111,0 +132,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
176117
137