Skip to content

Commit

Permalink
meta: add license comments to all source files (#370)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkrems authored Apr 9, 2021
1 parent 6c60415 commit cb4e42f
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 2 deletions.
11 changes: 9 additions & 2 deletions lib/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
// Main entrypoint for libraries using yargs-parser in Node.js
// CJS and ESM environments:
/**
* @fileoverview Main entrypoint for libraries using yargs-parser in Node.js
* CJS and ESM environments.
*
* @license
* Copyright (c) 2016, Contributors
* SPDX-License-Identifier: ISC
*/

import { format } from 'util'
import { readFileSync } from 'fs'
import { normalize, resolve } from 'path'
Expand Down
6 changes: 6 additions & 0 deletions lib/string-utils.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* @license
* Copyright (c) 2016, Contributors
* SPDX-License-Identifier: ISC
*/

export function camelCase (str: string): string {
// Handle the case where an argument is provided as camel case, e.g., fooBar.
// by ensuring that the string isn't already mixed case:
Expand Down
6 changes: 6 additions & 0 deletions lib/tokenize-arg-string.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* @license
* Copyright (c) 2016, Contributors
* SPDX-License-Identifier: ISC
*/

// take an un-split argv string and tokenize it.
export function tokenizeArgString (argString: string | any[]): string[] {
if (Array.isArray(argString)) {
Expand Down
6 changes: 6 additions & 0 deletions lib/yargs-parser-types.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* @license
* Copyright (c) 2016, Contributors
* SPDX-License-Identifier: ISC
*/

/**
* An object whose all properties have the same type, where each key is a string.
*/
Expand Down
6 changes: 6 additions & 0 deletions lib/yargs-parser.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
/**
* @license
* Copyright (c) 2016, Contributors
* SPDX-License-Identifier: ISC
*/

import { tokenizeArgString } from './tokenize-arg-string.js'
import type {
ArgsInput,
Expand Down

0 comments on commit cb4e42f

Please sign in to comment.