0.0.23 • Published 9 months ago

@alshdavid/kit v0.0.23

Weekly downloads
-
License
MIT
Repository
-
Last release
9 months ago

JavaScript Kit Utils

npm install @alshdavid/kit
import { sha256 } from '@alshdavid/kit/crypto'

void (async function main() {
  const foo = await sha256('foo')
})()

From the browser

const kit = await import(
  'https://cdn.jsdelivr.net/npm/@alshdavid/kit@latest/browser/esm/index.js'
)

await kit.localStorage.setItem('foo', 'bar')
kit.log(await alshx.localStorage.getItem('foo'))

// Also automatically added to globalThis
await alshx.localStorage.setItem('foo', 'bar')
console.log(await alshx.localStorage.getItem('foo'))
<script type="importmap">
{
  "imports": {
    "@alshx/kit/": "https://cdn.jsdelivr.net/npm/@alshdavid/kit@latest/browser/esm/"
  }
}
</script>

<script type="module">
  import * as preact from '@alshx/kit/preact.js'
  console.log(preact)
</script>

<script type="module">
  import * as kit from '@alshx/kit/index.js'
  console.log(kit)
</script>
0.0.20

9 months ago

0.0.21

9 months ago

0.0.22

9 months ago

0.0.23

9 months ago

0.0.0-local

9 months ago

0.0.15

9 months ago

0.0.16

9 months ago

0.0.17

9 months ago

0.0.18

9 months ago

0.0.19

9 months ago

0.0.10

9 months ago

0.0.11

9 months ago

0.0.12

9 months ago

0.0.13

9 months ago

0.0.14

9 months ago

0.0.0

9 months ago

0.0.9

9 months ago

0.0.8

9 months ago

0.0.7

9 months ago

0.8.6

2 years ago

0.8.5

2 years ago

0.8.1

2 years ago

0.8.0

2 years ago

0.8.3

2 years ago

0.8.2

2 years ago

0.7.0

2 years ago

0.0.6

3 years ago

0.0.5

3 years ago

0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago