Skip to content

Commit

Permalink
Added module docs
Browse files Browse the repository at this point in the history
  • Loading branch information
halvardssm committed Apr 28, 2024
1 parent a43d43a commit 1c9cada
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion encoding/deno.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.0.1",
"version": "0.0.2",
"name": "@stdext/encoding",
"lock": false,
"exports": {
Expand Down
11 changes: 11 additions & 0 deletions encoding/hex.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,14 @@
/**
* Utilities for hex encoded data.
* @module
*
* ```ts
* import { dump } from "@stdext/encoding/hex";
* const buffer = new TextEncoder().encode("Hello world!");
* console.log(dump(buffer));
* ```
*/

/**
* Convert a buffer to a hexdump string.
*
Expand Down

0 comments on commit 1c9cada

Please sign in to comment.