diff --git a/README.md b/README.md index ebc8290..b9bf9eb 100644 --- a/README.md +++ b/README.md @@ -31,13 +31,12 @@ Import your module as : const bigintModArith = require('bigint-mod-arith') ... // your code here ``` - - JavaScript native or TypeScript project (including Angular and React) + - JavaScript native or TypeScript project (including React and Angular) ```javascript import * as bigintModArith from 'bigint-mod-arith' ... // your code here ``` - > BigInt is [ES-2020](https://tc39.es/ecma262/#sec-bigint-objects). In order to use it with TypeScript you should set `lib` (and probably also `target` and `module`) to `esnext` in `tsconfig.json`. - - JavaScript native browser ES6 mod + - JavaScript native browser ES module ```html - +
+ ... + + + + ... + + ``` -And you could use it like in the following: +An example of usage could be: ```javascript /* Stage 3 BigInts with value 666 can be declared as BigInt('666') diff --git a/src/doc/readme-template.md b/src/doc/readme-template.md index 4c1aad7..95ae1ba 100644 --- a/src/doc/readme-template.md +++ b/src/doc/readme-template.md @@ -30,13 +30,12 @@ Import your module as : const {{PKG_CAMELCASE}} = require('{{PKG_NAME}}') ... // your code here ``` - - JavaScript native or TypeScript project (including Angular and React) + - JavaScript native or TypeScript project (including React and Angular) ```javascript import * as {{PKG_CAMELCASE}} from '{{PKG_NAME}}' ... // your code here ``` - > BigInt is [ES-2020](https://tc39.es/ecma262/#sec-bigint-objects). In order to use it with TypeScript you should set `lib` (and probably also `target` and `module`) to `esnext` in `tsconfig.json`. - - JavaScript native browser ES6 mod + - JavaScript native browser ES module ```html - + + ... + + + + ... + + ``` -And you could use it like in the following: +An example of usage could be: ```javascript /* Stage 3 BigInts with value 666 can be declared as BigInt('666')