Skip to content

Commit

Permalink
docs: Move "Installation" section higher
Browse files Browse the repository at this point in the history
  • Loading branch information
bradenmacdonald committed Mar 4, 2024
1 parent 3c70ef0 commit f4e818b
Showing 1 changed file with 17 additions and 17 deletions.
34 changes: 17 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit f4e818b

Please sign in to comment.