Skip to content

Commit

Permalink
docs: add module level docs (#2190)
Browse files Browse the repository at this point in the history
  • Loading branch information
likenanhai authored May 4, 2022
1 parent b88fb9c commit c75454c
Show file tree
Hide file tree
Showing 16 changed files with 66 additions and 11 deletions.
4 changes: 3 additions & 1 deletion collections/mod.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.
/** This module is browser compatible.
* @module
*/

export * from "./aggregate_groups.ts";
export * from "./associate_by.ts";
Expand Down
1 change: 1 addition & 0 deletions crypto/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
/**
* A copy of the global WebCrypto interface, with methods bound so they're
* safe to re-export.
* @module
*/
const webCrypto = ((crypto) => ({
getRandomValues: crypto.getRandomValues?.bind(crypto),
Expand Down
5 changes: 4 additions & 1 deletion datetime/mod.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.
/**
* This module is browser compatible.
* @module
*/

import { DateTimeFormatter } from "./formatter.ts";

Expand Down
4 changes: 4 additions & 0 deletions dotenv/mod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
/**
* Dotenv config
* @module
*/

import { difference, removeEmptyValues } from "./util.ts";

Expand Down
7 changes: 5 additions & 2 deletions flags/mod.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.

/**
* This module is browser compatible.
*
* @module
*/
import { assert } from "../_util/assert.ts";

/** The value returned from `parse`. */
Expand Down
6 changes: 4 additions & 2 deletions hash/mod.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
// This module is browser compatible.

/**
* This module is browser compatible.
* @module
*/
import { Hash } from "./_wasm/hash.ts";
import type { Hasher } from "./hasher.ts";

Expand Down
4 changes: 4 additions & 0 deletions http/mod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
/**
* Http
* @module
*/
export * from "./cookie.ts";
export * from "./http_status.ts";
export * from "./server.ts";
4 changes: 4 additions & 0 deletions io/mod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
/**
* IO
* @module
*/
export * from "./buffer.ts";
export * from "./readers.ts";
export * from "./streams.ts";
Expand Down
4 changes: 4 additions & 0 deletions log/mod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
/**
* log
* @module
*/
import { Logger } from "./logger.ts";
import type { GenericFunction } from "./logger.ts";
import {
Expand Down
4 changes: 4 additions & 0 deletions mime/mod.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
/**
* Mime
* @module
*/
export * from "./multipart.ts";
8 changes: 6 additions & 2 deletions path/mod.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
// Copyright the Browserify authors. MIT License.
// Ported mostly from https://github.com/browserify/path-browserify/
// This module is browser compatible.

/**
* Ported mostly from https://github.com/browserify/path-browserify/
* This module is browser compatible.
* @module
*/

import { isWindows } from "../_util/os.ts";
import * as _win32 from "./win32.ts";
Expand Down
4 changes: 4 additions & 0 deletions permissions/mod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
/**
* Permission
* @module
*/

const { PermissionDenied } = Deno.errors;

Expand Down
5 changes: 5 additions & 0 deletions signal/mod.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
/**
* Signal
*
* @module
*/
import { MuxAsyncIterator } from "../async/mux_async_iterator.ts";
import { deferred } from "../async/deferred.ts";

Expand Down
6 changes: 5 additions & 1 deletion streams/mod.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.

/**
* Streams
*
* @module
*/
export * from "./buffer.ts";
export * from "./conversion.ts";
export * from "./delimiter.ts";
Expand Down
7 changes: 5 additions & 2 deletions textproto/mod.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
// Copyright 2018-2022 the Deno authors. All rights reserved. MIT license.
// Based on https://github.com/golang/go/tree/master/src/net/textproto
// Copyright 2009 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
/**
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file.
* @module
*/

import type { BufReader, ReadLineResult } from "../io/buffer.ts";
import { concat } from "../bytes/mod.ts";
Expand Down
4 changes: 4 additions & 0 deletions uuid/mod.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@

// Based on https://github.com/kelektiv/node-uuid -> https://www.ietf.org/rfc/rfc4122.txt
// Supporting Support for RFC4122 version 1, 4, and 5 UUIDs
/**
* UUID
* @module
*/

import * as v1 from "./v1.ts";
import * as v4 from "./v4.ts";
Expand Down

0 comments on commit c75454c

Please sign in to comment.