diff --git a/colors/example.ts b/colors/example.ts index 02bc93432e..c6bbd614db 100644 --- a/colors/example.ts +++ b/colors/example.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { bgBlue, red, bold, italic } from "./mod.ts"; console.log(bgBlue(italic(red(bold("Hello world!"))))); diff --git a/colors/test.ts b/colors/test.ts index f12f0cbb1f..bdce355234 100644 --- a/colors/test.ts +++ b/colors/test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { assert, test } from "../testing/mod.ts"; import { red, bgBlue, setEnabled, getEnabled } from "./mod.ts"; import "./example.ts"; diff --git a/datetime/mod.ts b/datetime/mod.ts index 5a967925d5..f30fc89c99 100644 --- a/datetime/mod.ts +++ b/datetime/mod.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. export type DateFormat = "mm-dd-yyyy" | "dd-mm-yyyy" | "yyyy-mm-dd"; /** diff --git a/datetime/test.ts b/datetime/test.ts index ce8193dfb3..65577420b1 100644 --- a/datetime/test.ts +++ b/datetime/test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual, assert } from "../testing/mod.ts"; import * as datetime from "mod.ts"; diff --git a/examples/cat.ts b/examples/cat.ts index d8862d4249..38fdbb2cce 100644 --- a/examples/cat.ts +++ b/examples/cat.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import * as deno from "deno"; async function cat(filenames: string[]): Promise { diff --git a/examples/echo_server.ts b/examples/echo_server.ts index 1d5b287db7..5776e77ef4 100644 --- a/examples/echo_server.ts +++ b/examples/echo_server.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { listen, copy } from "deno"; (async () => { diff --git a/examples/gist.ts b/examples/gist.ts index 1baff874ae..860678d88d 100755 --- a/examples/gist.ts +++ b/examples/gist.ts @@ -1,4 +1,5 @@ #!/usr/bin/env deno --allow-net --allow-env +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { args, env, exit, readFile } from "deno"; import { parse } from "https://deno.land/x/flags/mod.ts"; diff --git a/examples/test.ts b/examples/test.ts index 58013c70b5..79a90827ae 100644 --- a/examples/test.ts +++ b/examples/test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { run } from "deno"; import { test, assertEqual } from "../testing/mod.ts"; diff --git a/flags/example.ts b/flags/example.ts index 5aa0a50345..54d64b6817 100644 --- a/flags/example.ts +++ b/flags/example.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { args } from "deno"; import { parse } from "./mod.ts"; diff --git a/flags/mod.ts b/flags/mod.ts index 28a5c8eaca..2b91c2775d 100644 --- a/flags/mod.ts +++ b/flags/mod.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. export interface ArgParsingOptions { unknown?: Function; boolean?: Boolean | string | string[]; diff --git a/flags/test.ts b/flags/test.ts index fe4ec2c9fa..66aa8d2cd9 100644 --- a/flags/test.ts +++ b/flags/test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import "./tests/all_bool.ts"; import "./tests/bool.ts"; import "./tests/dash.ts"; diff --git a/flags/tests/all_bool.ts b/flags/tests/all_bool.ts index 07b12c2920..80e469f184 100755 --- a/flags/tests/all_bool.ts +++ b/flags/tests/all_bool.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/flags/tests/bool.ts b/flags/tests/bool.ts index 6fa014d8dd..6e3da2e737 100755 --- a/flags/tests/bool.ts +++ b/flags/tests/bool.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/flags/tests/dash.ts b/flags/tests/dash.ts index 6ab1a7d75a..d9f54c6928 100755 --- a/flags/tests/dash.ts +++ b/flags/tests/dash.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/flags/tests/default_bool.ts b/flags/tests/default_bool.ts index 82dab55386..ed5564715b 100755 --- a/flags/tests/default_bool.ts +++ b/flags/tests/default_bool.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/flags/tests/dotted.ts b/flags/tests/dotted.ts index 6b64e3b5e8..31b73c85d6 100755 --- a/flags/tests/dotted.ts +++ b/flags/tests/dotted.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/flags/tests/kv_short.ts b/flags/tests/kv_short.ts index 41853c1def..f2440919b3 100755 --- a/flags/tests/kv_short.ts +++ b/flags/tests/kv_short.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/flags/tests/long.ts b/flags/tests/long.ts index d75ece3b2d..9ea7df4719 100755 --- a/flags/tests/long.ts +++ b/flags/tests/long.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/flags/tests/num.ts b/flags/tests/num.ts index cc5b1b4e30..a3b564e7e2 100755 --- a/flags/tests/num.ts +++ b/flags/tests/num.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/flags/tests/parse.ts b/flags/tests/parse.ts index 2633357616..d6a1be709f 100755 --- a/flags/tests/parse.ts +++ b/flags/tests/parse.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/flags/tests/short.ts b/flags/tests/short.ts index fe89943948..84edd483eb 100755 --- a/flags/tests/short.ts +++ b/flags/tests/short.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/flags/tests/stop_early.ts b/flags/tests/stop_early.ts index aef4d5dc56..5e171accda 100755 --- a/flags/tests/stop_early.ts +++ b/flags/tests/stop_early.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/flags/tests/unknown.ts b/flags/tests/unknown.ts index e86f927965..ba1023dbe4 100755 --- a/flags/tests/unknown.ts +++ b/flags/tests/unknown.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/flags/tests/whitespace.ts b/flags/tests/whitespace.ts index 46ad094260..4dd9f9783d 100755 --- a/flags/tests/whitespace.ts +++ b/flags/tests/whitespace.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assertEqual } from "../../testing/mod.ts"; import { parse } from "../mod.ts"; diff --git a/fs/path.ts b/fs/path.ts index 64390108d6..6ca0749c23 100644 --- a/fs/path.ts +++ b/fs/path.ts @@ -1,2 +1,3 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. export * from "./path/mod.ts"; export * from "./path/interface.ts"; diff --git a/http/file_server.ts b/http/file_server.ts index d1a34ab79a..1f3fdd5861 100755 --- a/http/file_server.ts +++ b/http/file_server.ts @@ -1,4 +1,5 @@ #!/usr/bin/env deno --allow-net +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. // This program serves files in the current directory over HTTP. // TODO Stream responses instead of reading them into memory. diff --git a/http/file_server_test.ts b/http/file_server_test.ts index f8b2429b01..1b6613c15f 100644 --- a/http/file_server_test.ts +++ b/http/file_server_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { readFile, run } from "deno"; import { test, assert, assertEqual } from "../testing/mod.ts"; diff --git a/http/http_bench.ts b/http/http_bench.ts index 5aca12f55c..d80b2b103e 100644 --- a/http/http_bench.ts +++ b/http/http_bench.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import * as deno from "deno"; import { serve } from "./mod.ts"; diff --git a/http/http_status.ts b/http/http_status.ts index a3006d319b..9ff212f296 100644 --- a/http/http_status.ts +++ b/http/http_status.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. export enum Status { Continue = 100, // RFC 7231, 6.2.1 SwitchingProtocols = 101, // RFC 7231, 6.2.2 diff --git a/http/server.ts b/http/server.ts index fe25a5f6e1..723a345232 100644 --- a/http/server.ts +++ b/http/server.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { listen, Conn, toAsyncIterator, Reader, copy } from "deno"; import { BufReader, BufState, BufWriter } from "../io/bufio.ts"; import { TextProtoReader } from "../textproto/mod.ts"; diff --git a/io/ioutil_test.ts b/io/ioutil_test.ts index 422901e4a5..4ff69352a7 100644 --- a/io/ioutil_test.ts +++ b/io/ioutil_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { Reader, ReadResult } from "deno"; import { assertEqual, test } from "../testing/mod.ts"; import { readInt, readLong, readShort, sliceLongToBytes } from "./ioutil.ts"; diff --git a/io/util.ts b/io/util.ts index 185732b366..8726a18879 100644 --- a/io/util.ts +++ b/io/util.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { Buffer, Reader } from "deno"; // `off` is the offset into `dst` where it will at which to begin writing values diff --git a/io/util_test.ts b/io/util_test.ts index 7318d887cc..90ae5d4c1b 100644 --- a/io/util_test.ts +++ b/io/util_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { test, assert } from "../testing/mod.ts"; import { copyBytes } from "./util.ts"; diff --git a/log/handlers.ts b/log/handlers.ts index c39102c8e8..9241bd77e4 100644 --- a/log/handlers.ts +++ b/log/handlers.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { open, File, Writer } from "deno"; import { getLevelByName } from "./levels.ts"; import { LogRecord } from "./logger.ts"; diff --git a/log/handlers_test.ts b/log/handlers_test.ts index bbdf6e0a50..52eca16ea5 100644 --- a/log/handlers_test.ts +++ b/log/handlers_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { assertEqual, test } from "../testing/mod.ts"; import { LogRecord, Logger } from "./logger.ts"; import { LogLevel, getLevelName, getLevelByName } from "./levels.ts"; diff --git a/log/levels.ts b/log/levels.ts index 52d28aea5a..3fc8661618 100644 --- a/log/levels.ts +++ b/log/levels.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. export const LogLevel = { NOTSET: 0, DEBUG: 10, diff --git a/log/logger.ts b/log/logger.ts index 9f34f9c325..678d5ed94d 100644 --- a/log/logger.ts +++ b/log/logger.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { LogLevel, getLevelByName, getLevelName } from "./levels.ts"; import { BaseHandler } from "./handlers.ts"; diff --git a/log/logger_test.ts b/log/logger_test.ts index 2456e9fc24..a2275a00bd 100644 --- a/log/logger_test.ts +++ b/log/logger_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { assertEqual, test } from "../testing/mod.ts"; import { LogRecord, Logger } from "./logger.ts"; import { LogLevel } from "./levels.ts"; diff --git a/log/mod.ts b/log/mod.ts index 821c2f82aa..96dc81ff1a 100644 --- a/log/mod.ts +++ b/log/mod.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { Logger } from "./logger.ts"; import { BaseHandler, diff --git a/log/test.ts b/log/test.ts index 3d803cc0c3..f9ab4222e1 100644 --- a/log/test.ts +++ b/log/test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { assertEqual, test } from "../testing/mod.ts"; import * as log from "./mod.ts"; import { BaseHandler } from "./handlers.ts"; diff --git a/test.ts b/test.ts index 07d825b625..0c4cf95b9c 100755 --- a/test.ts +++ b/test.ts @@ -1,4 +1,5 @@ #!/usr/bin/env deno --allow-run --allow-net --allow-write +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import "colors/test.ts"; import "datetime/test.ts"; import "examples/test.ts"; diff --git a/ws/sha1_test.ts b/ws/sha1_test.ts index 0b1e2c8583..865e443e5e 100644 --- a/ws/sha1_test.ts +++ b/ws/sha1_test.ts @@ -1,3 +1,4 @@ +// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. import { assert, test } from "../testing/mod.ts"; import { Sha1 } from "./sha1.ts";