diff --git a/index.md b/index.md index d1526618..080e6a3b 100644 --- a/index.md +++ b/index.md @@ -6,28 +6,13 @@

- - npm downloads - - - jsDelivr hits - - - npm version - - - deno version - + npm downloads + npm version + jsr version
- - dependencies - - - license - - - codecov - + dependencies + license + codecov

@@ -44,8 +29,10 @@ npm install @petamoriken/float16 ``` +### Deno + ```console -yarn add @petamoriken/float16 +deno add @petamoriken/float16 ``` ### Bun @@ -56,10 +43,9 @@ bun add @petamoriken/float16 ## Import -### Node.js, Bun or Bundler (webpack, rollup.js, esbuild, etc) +### Node.js, Deno, Bun or Bundler ```js -// ES Modules import { Float16Array, isFloat16Array, isTypedArray, getFloat16, setFloat16, @@ -67,28 +53,6 @@ import { } from "@petamoriken/float16"; ``` -```js -// CommonJS -const { - Float16Array, isFloat16Array, isTypedArray, - getFloat16, setFloat16, - f16round, -} = require("@petamoriken/float16"); -``` - -### Deno - -You can get modules from the [deno.land/x](https://deno.land/x/float16) hosting -service. - -```ts -import { - Float16Array, isFloat16Array, isTypedArray, - getFloat16, setFloat16, - f16round, -} from "https://deno.land/x/float16/mod.ts"; -``` - ### Browser Deliver a `browser/float16.mjs` or `browser/float16.js` file in the npm package @@ -164,7 +128,6 @@ environments: - Node.js: Active LTS - Firefox: last 2 versions and ESR - Chrome: last 2 versions -- Edge: last 2 versions - Safari: last 2 versions ## API @@ -346,21 +309,12 @@ f16round(1.337); // 1.3369140625 ### Node.js ```js - // ES Modules import { Float16Array } from "@petamoriken/float16"; import { customInspect } from "@petamoriken/float16/inspect"; Float16Array.prototype[Symbol.for("nodejs.util.inspect.custom")] = customInspect; ``` - ```js - // CommonJS - const { Float16Array } = require("@petamoriken/float16"); - const { customInspect } = require("@petamoriken/float16/inspect"); - - Float16Array.prototype[Symbol.for("nodejs.util.inspect.custom")] = customInspect; - ``` - ### Deno ```ts diff --git a/test/float16.js b/test/float16.js index 4ff9c670..5e0dc301 100644 --- a/test/float16.js +++ b/test/float16.js @@ -1,4 +1,4 @@ -/*! @petamoriken/float16 v3.8.4-67-g452237f | MIT License - https://github.com/petamoriken/float16 */ +/*! @petamoriken/float16 v3.8.4-77-g758b001 | MIT License - https://github.com/petamoriken/float16 */ var float16 = (function (exports) { 'use strict';