From c498f24f4c2016aac483e6b07839a3cc2e913b79 Mon Sep 17 00:00:00 2001 From: Jordan Luyke Date: Fri, 21 Sep 2018 10:52:52 -0700 Subject: [PATCH] move package under @wyre --- README.md | 10 +++++----- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 0993cac..4ea9a64 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Install ------- ``` -npm install wyre-api +npm install @wyre/api ``` Usage @@ -15,12 +15,12 @@ Usage *An important note on decimals*: -Some currencies, like ETH, have many decimal places. This can cause problems with the +Some currencies, like ETH, have many decimal places. This can cause problems with the many JSON implementations that fail to offer support arbitrary precision numbers. Moreover, IEEE 754 floating point is not in general a good representation for money - it does not necessarily preserve precision. In the examples below, we have supplied the `format` parameter as `"json_numberstring"`. This encodes all -numbers returned from our API as strings. If you need to perform arithmetic on these numbers, you ***must*** +numbers returned from our API as strings. If you need to perform arithmetic on these numbers, you ***must*** use an arbitrary-precision library: - [BigDecimal.js](https://github.com/iriscouch/bigdecimal.js): a literal port of Java's BigInteger and BigDecimal classes. @@ -29,8 +29,8 @@ use an arbitrary-precision library: Alternatively, instead supply the (default) `"format":"json"` and the API will encode numbers directly in JSON. ```js -const WyreClient = require('wyre-api').WyreClient -// import {WyreClient} from 'wyre-api' +const WyreClient = require('@wyre/api').WyreClient +// import {WyreClient} from '@wyre/api' let wyre = new WyreClient({ format: "json_numberstring", diff --git a/package-lock.json b/package-lock.json index 1b224d9..00d50f5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { - "name": "wyre-api", - "version": "1.0.2", + "name": "@wyre/api", + "version": "1.0.3", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 81db3f5..f4047fc 100644 --- a/package.json +++ b/package.json @@ -1,5 +1,5 @@ { - "name": "wyre-api", + "name": "@wyre/api", "version": "1.0.3", "description": "Node.js client library for the Wyre API.", "main": "./dist/wyre.js",