Skip to content

Commit 578100d

Browse files
committed
meta: update copyright statement in src/lib files
1 parent 7dd82dd commit 578100d

File tree

211 files changed

+689
-10
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+689
-10
lines changed

COLLABORATOR_GUIDE.md

+16

lib/.eslintrc.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ rules:
33
require-buffer: 2
44
buffer-constructor: 2
55
no-let-in-for-declaration: 2
6+
no-copyright: 2

lib/_debug_agent.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
const assert = require('assert');

lib/_debugger.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
const internalUtil = require('internal/util');

lib/_http_agent.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
const net = require('net');

lib/_http_client.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
const util = require('util');

lib/_http_common.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
const binding = process.binding('http_parser');

lib/_http_incoming.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
const util = require('util');

lib/_http_outgoing.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
const assert = require('assert').ok;

lib/_http_server.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
const util = require('util');

lib/_linklist.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
module.exports = require('internal/linkedlist');

lib/_stream_duplex.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
// a duplex stream is just a stream that is both readable and writable.
25
// Since JS doesn't have multiple prototypal inheritance, this class
36
// prototypally inherits from Readable, and then parasitically from

lib/_stream_passthrough.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
// a passthrough stream.
25
// basically just the most minimal sort of Transform stream.
36
// Every written chunk gets output as-is.

lib/_stream_readable.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
module.exports = Readable;

lib/_stream_transform.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
// a transform stream is a readable/writable stream where you do
25
// something with the data. Sometimes it's called a "filter",
36
// but that's not a great name for it, since that implies a thing where

lib/_stream_wrap.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
const assert = require('assert');

lib/_stream_writable.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
// A bit simpler than readable streams.
25
// Implement an async ._write(chunk, encoding, cb), and it'll handle all
36
// the drain event emission and buffering.

lib/_tls_common.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
const internalUtil = require('internal/util');

lib/_tls_legacy.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
require('internal/util').assertCrypto();

lib/_tls_wrap.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
require('internal/util').assertCrypto();

lib/assert.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
// http://wiki.commonjs.org/wiki/Unit_Testing/1.0
25
//
36
// THIS IS NOT TESTED NOR LIKELY TO WORK OUTSIDE V8!

lib/buffer.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
/* eslint-disable require-buffer */
25
'use strict';
36

lib/child_process.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
const util = require('util');

lib/cluster.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
module.exports = ('NODE_UNIQUE_ID' in process.env) ?

lib/console.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
const util = require('util');

lib/constants.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
// This module is deprecated in documentation only. Users should be directed

lib/crypto.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
// Note: In 0.8 and before, crypto functions all defaulted to using
25
// binary-encoded strings rather than buffers.
36

lib/dgram.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
const assert = require('assert');

lib/dns.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
const util = require('util');

lib/domain.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
// WARNING: THIS MODULE IS PENDING DEPRECATION.

lib/events.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
var domain;

lib/fs.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
// Maintainers, keep in mind that ES1-style octal literals (`0666`) are not
25
// allowed in strict mode. Use ES6-style octal literals instead (`0o666`).
36

lib/http.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25
exports.IncomingMessage = require('_http_incoming').IncomingMessage;
36

lib/https.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
require('internal/util').assertCrypto();

lib/internal/bootstrap_node.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
// Hello, and welcome to hacking node.js!
25
//
36
// This file is invoked by node::LoadEnvironment in src/node.cc, and is

lib/internal/buffer.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
if (!process.binding('config').hasIntl) {

lib/internal/child_process.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
const StringDecoder = require('string_decoder').StringDecoder;

lib/internal/cluster/child.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
13
'use strict';
24
const assert = require('assert');
35
const util = require('util');

lib/internal/cluster/master.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
13
'use strict';
24
const assert = require('assert');
35
const fork = require('child_process').fork;

lib/internal/cluster/round_robin_handle.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
13
'use strict';
24
const assert = require('assert');
35
const net = require('net');

lib/internal/cluster/shared_handle.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
13
'use strict';
24
const assert = require('assert');
35
const dgram = require('dgram');

lib/internal/cluster/utils.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
13
'use strict';
24
const util = require('util');
35

lib/internal/cluster/worker.js

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
13
'use strict';
24
const EventEmitter = require('events');
35
const internalUtil = require('internal/util');

lib/internal/freelist.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
// This is a free list to avoid creating so many of the same object.

lib/internal/fs.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
const Buffer = require('buffer').Buffer;

lib/internal/linkedlist.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
function init(list) {

lib/internal/module.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
exports = module.exports = {

lib/internal/net.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
module.exports = { isLegalPort, assertPort };

lib/internal/process.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
var _lazyConstants = null;

lib/internal/process/next_tick.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
exports.setup = setupNextTick;

lib/internal/process/promises.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
const promiseRejectEvent = process._promiseRejectEvent;

lib/internal/process/stdio.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
exports.setup = setupStdio;

lib/internal/process/warning.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
const config = process.binding('config');

lib/internal/readline.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
// Regex used for ansi escape code splitting

lib/internal/repl.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
const Interface = require('readline').Interface;

lib/internal/socket_list.js

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
// Copyright Node.js contributors. All rights reserved.
2+
// SPDX-License-Identifier: MIT
3+
14
'use strict';
25

36
module.exports = {SocketListSend, SocketListReceive};

0 commit comments

Comments
 (0)