#zip #typescript #javascript #download #utility #store #file #graphs #module #special

eszip

A utility that can download JavaScript and TypeScript module graphs and store them locally in a special zip file

21 releases (12 breaking)

0.13.0 Sep 27, 2021
0.11.0 Aug 19, 2021
0.10.0 Jul 8, 2021
0.7.0 Mar 31, 2021
Download history 18/week @ 2021-07-06 14/week @ 2021-07-13 30/week @ 2021-07-20 44/week @ 2021-07-27 23/week @ 2021-08-03 36/week @ 2021-08-10 26/week @ 2021-08-17 21/week @ 2021-08-24 15/week @ 2021-08-31 6/week @ 2021-09-07 213/week @ 2021-09-14 182/week @ 2021-09-21 259/week @ 2021-09-28 435/week @ 2021-10-05 284/week @ 2021-10-12 123/week @ 2021-10-19

188 downloads per month

MIT license

39KB
1K SLoC

eszip

A utility that can download JavaScript and TypeScript module graphs and store them locally in a special zip file.

To create a new archive:

> eszip get https://raw.githubusercontent.com/satyarohith/kament/main/mod.ts
Download https://raw.githubusercontent.com/satyarohith/kament/main/mod.ts
...
Wrote es.zip

To print the list of modules in an eszip file:

> eszip list es.zip
https://denopkg.com/chiefbiiko/sha512/mod.ts
https://deno.land/x/djwt@v2.1/algorithm.ts
https://deno.land/x/god_crypto@v1.4.8/src/rsa/rsa_key.ts
https://deno.land/x/god_crypto@v1.4.8/src/rsa/rsa_js.ts
...

To read a module from the archive:

> eszip read es.zip https://denopkg.com/chiefbiiko/sha512/mod.ts
import { encode, decode } from "./deps.ts";

/** Byte length of a SHA512 hash. */
export const BYTES: number = 64;

/** A class representation of the SHA2-512 algorithm. */
export class SHA512 {
  readonly hashSize: number = BYTES;
...

Dependencies

~12–17MB
~385K SLoC

7‚Qa