Skip to content

Commit

Permalink
meta: update copyright statement in src/lib files
Browse files Browse the repository at this point in the history
  • Loading branch information
jasnell committed Feb 8, 2017
1 parent 7dd82dd commit 578100d
Show file tree
Hide file tree
Showing 211 changed files with 689 additions and 10 deletions.
16 changes: 16 additions & 0 deletions COLLABORATOR_GUIDE.md
Expand Up @@ -567,3 +567,19 @@ When the LTS working group determines that a new LTS release is required,
selected commits will be picked from the staging branch to be included in the
release. This process of making a release will be a collaboration between the
LTS working group and the Release team.

## Licensing and Copyright Headers

All `*.js`, `*.cc\, and `*.h` files located in the `/lib' and `/src` folders
*must* have an appropriate copyright statement and SPDX license identifier
*only if it does not already have an existing copyright statement and license
identifier.*

```js
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT
```

Existing copyright statements and license identifiers within any source file
*must not be modified or removed* without review and sign-off by both the
Node.js Technical Steering Committee (TSC) and Node.js Foundation Board.
1 change: 1 addition & 0 deletions lib/.eslintrc.yaml
Expand Up @@ -3,3 +3,4 @@ rules:
require-buffer: 2
buffer-constructor: 2
no-let-in-for-declaration: 2
no-copyright: 2
3 changes: 3 additions & 0 deletions lib/_debug_agent.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const assert = require('assert');
Expand Down
3 changes: 3 additions & 0 deletions lib/_debugger.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const internalUtil = require('internal/util');
Expand Down
3 changes: 3 additions & 0 deletions lib/_http_agent.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const net = require('net');
Expand Down
3 changes: 3 additions & 0 deletions lib/_http_client.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const util = require('util');
Expand Down
3 changes: 3 additions & 0 deletions lib/_http_common.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const binding = process.binding('http_parser');
Expand Down
3 changes: 3 additions & 0 deletions lib/_http_incoming.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const util = require('util');
Expand Down
3 changes: 3 additions & 0 deletions lib/_http_outgoing.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const assert = require('assert').ok;
Expand Down
3 changes: 3 additions & 0 deletions lib/_http_server.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const util = require('util');
Expand Down
3 changes: 3 additions & 0 deletions lib/_linklist.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

module.exports = require('internal/linkedlist');
Expand Down
3 changes: 3 additions & 0 deletions lib/_stream_duplex.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

// a duplex stream is just a stream that is both readable and writable.
// Since JS doesn't have multiple prototypal inheritance, this class
// prototypally inherits from Readable, and then parasitically from
Expand Down
3 changes: 3 additions & 0 deletions lib/_stream_passthrough.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

// a passthrough stream.
// basically just the most minimal sort of Transform stream.
// Every written chunk gets output as-is.
Expand Down
3 changes: 3 additions & 0 deletions lib/_stream_readable.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

module.exports = Readable;
Expand Down
3 changes: 3 additions & 0 deletions lib/_stream_transform.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

// a transform stream is a readable/writable stream where you do
// something with the data. Sometimes it's called a "filter",
// but that's not a great name for it, since that implies a thing where
Expand Down
3 changes: 3 additions & 0 deletions lib/_stream_wrap.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const assert = require('assert');
Expand Down
3 changes: 3 additions & 0 deletions lib/_stream_writable.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

// A bit simpler than readable streams.
// Implement an async ._write(chunk, encoding, cb), and it'll handle all
// the drain event emission and buffering.
Expand Down
3 changes: 3 additions & 0 deletions lib/_tls_common.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const internalUtil = require('internal/util');
Expand Down
3 changes: 3 additions & 0 deletions lib/_tls_legacy.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

require('internal/util').assertCrypto();
Expand Down
3 changes: 3 additions & 0 deletions lib/_tls_wrap.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

require('internal/util').assertCrypto();
Expand Down
3 changes: 3 additions & 0 deletions lib/assert.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

// http://wiki.commonjs.org/wiki/Unit_Testing/1.0
//
// THIS IS NOT TESTED NOR LIKELY TO WORK OUTSIDE V8!
Expand Down
3 changes: 3 additions & 0 deletions lib/buffer.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

/* eslint-disable require-buffer */
'use strict';

Expand Down
3 changes: 3 additions & 0 deletions lib/child_process.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const util = require('util');
Expand Down
3 changes: 3 additions & 0 deletions lib/cluster.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

module.exports = ('NODE_UNIQUE_ID' in process.env) ?
Expand Down
3 changes: 3 additions & 0 deletions lib/console.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const util = require('util');
Expand Down
3 changes: 3 additions & 0 deletions lib/constants.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

// This module is deprecated in documentation only. Users should be directed
Expand Down
3 changes: 3 additions & 0 deletions lib/crypto.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

// Note: In 0.8 and before, crypto functions all defaulted to using
// binary-encoded strings rather than buffers.

Expand Down
3 changes: 3 additions & 0 deletions lib/dgram.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const assert = require('assert');
Expand Down
3 changes: 3 additions & 0 deletions lib/dns.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const util = require('util');
Expand Down
3 changes: 3 additions & 0 deletions lib/domain.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

// WARNING: THIS MODULE IS PENDING DEPRECATION.
Expand Down
3 changes: 3 additions & 0 deletions lib/events.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

var domain;
Expand Down
3 changes: 3 additions & 0 deletions lib/fs.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

// Maintainers, keep in mind that ES1-style octal literals (`0666`) are not
// allowed in strict mode. Use ES6-style octal literals instead (`0o666`).

Expand Down
3 changes: 3 additions & 0 deletions lib/http.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';
exports.IncomingMessage = require('_http_incoming').IncomingMessage;

Expand Down
3 changes: 3 additions & 0 deletions lib/https.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

require('internal/util').assertCrypto();
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/bootstrap_node.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

// Hello, and welcome to hacking node.js!
//
// This file is invoked by node::LoadEnvironment in src/node.cc, and is
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/buffer.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

if (!process.binding('config').hasIntl) {
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/child_process.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const StringDecoder = require('string_decoder').StringDecoder;
Expand Down
2 changes: 2 additions & 0 deletions lib/internal/cluster/child.js
@@ -1,3 +1,5 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT
'use strict';
const assert = require('assert');
const util = require('util');
Expand Down
2 changes: 2 additions & 0 deletions lib/internal/cluster/master.js
@@ -1,3 +1,5 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT
'use strict';
const assert = require('assert');
const fork = require('child_process').fork;
Expand Down
2 changes: 2 additions & 0 deletions lib/internal/cluster/round_robin_handle.js
@@ -1,3 +1,5 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT
'use strict';
const assert = require('assert');
const net = require('net');
Expand Down
2 changes: 2 additions & 0 deletions lib/internal/cluster/shared_handle.js
@@ -1,3 +1,5 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT
'use strict';
const assert = require('assert');
const dgram = require('dgram');
Expand Down
2 changes: 2 additions & 0 deletions lib/internal/cluster/utils.js
@@ -1,3 +1,5 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT
'use strict';
const util = require('util');

Expand Down
2 changes: 2 additions & 0 deletions lib/internal/cluster/worker.js
@@ -1,3 +1,5 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT
'use strict';
const EventEmitter = require('events');
const internalUtil = require('internal/util');
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/freelist.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

// This is a free list to avoid creating so many of the same object.
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/fs.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const Buffer = require('buffer').Buffer;
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/linkedlist.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

function init(list) {
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/module.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

exports = module.exports = {
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/net.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

module.exports = { isLegalPort, assertPort };
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/process.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

var _lazyConstants = null;
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/process/next_tick.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

exports.setup = setupNextTick;
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/process/promises.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const promiseRejectEvent = process._promiseRejectEvent;
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/process/stdio.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

exports.setup = setupStdio;
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/process/warning.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const config = process.binding('config');
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/readline.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

// Regex used for ansi escape code splitting
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/repl.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

const Interface = require('readline').Interface;
Expand Down
3 changes: 3 additions & 0 deletions lib/internal/socket_list.js
@@ -1,3 +1,6 @@
// Copyright Node.js contributors. All rights reserved.
// SPDX-License-Identifier: MIT

'use strict';

module.exports = {SocketListSend, SocketListReceive};
Expand Down

0 comments on commit 578100d

Please sign in to comment.