-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
docs: Move "Installation" section higher
- Loading branch information
1 parent
3c70ef0
commit f4e818b
Showing
1 changed file
with
17 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,23 @@ MIT licensed. | |
|
||
Zero dependencies. | ||
|
||
## Installation | ||
|
||
- Deno: `deno add @bradenmacdonald/quantity-math-js` | ||
- Deno (no install): `import { Quantity } from "jsr:@bradenmacdonald/[email protected]";` | ||
- NPM: `npx jsr add @bradenmacdonald/quantity-math-js` | ||
- Yarn: `yarn dlx jsr add @bradenmacdonald/quantity-math-js` | ||
- pnpm: `pnpm dlx jsr add @bradenmacdonald/quantity-math-js` | ||
- Bun: `bunx jsr add @bradenmacdonald/quantity-math-js` | ||
- Browser: | ||
```html | ||
<script type="module"> | ||
import { Quantity } from "https://esm.sh/jsr/@bradenmacdonald/[email protected]"; | ||
// Or: | ||
const { Quantity } = await import('https://esm.sh/jsr/@bradenmacdonald/[email protected]'); | ||
</script> | ||
``` | ||
|
||
## Basic Usage | ||
|
||
Importing: | ||
|
@@ -101,23 +118,6 @@ fb.toString(); // "20 _foo⋅_bar" | |
fb.multiply(f).toString(); // "200 _foo^2⋅_bar" | ||
``` | ||
|
||
## Installation | ||
|
||
- Deno: `deno add @bradenmacdonald/quantity-math-js` | ||
- Deno (no install): `import { Quantity } from "jsr:@bradenmacdonald/[email protected]";` | ||
- NPM: `npx jsr add @bradenmacdonald/quantity-math-js` | ||
- Yarn: `yarn dlx jsr add @bradenmacdonald/quantity-math-js` | ||
- pnpm: `pnpm dlx jsr add @bradenmacdonald/quantity-math-js` | ||
- Bun: `bunx jsr add @bradenmacdonald/quantity-math-js` | ||
- Browser: | ||
```html | ||
<script type="module"> | ||
import { Quantity } from "https://esm.sh/jsr/@bradenmacdonald/[email protected]"; | ||
// Or: | ||
const { Quantity } = await import('https://esm.sh/jsr/@bradenmacdonald/[email protected]'); | ||
</script> | ||
``` | ||
|
||
## Development Roadmap / TODOs | ||
|
||
- Finish implementing "significant digits" | ||
|