From 84d0b7af688a4613e0d654a700890b174e0faba0 Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 28 Apr 2026 00:29:38 +0000 Subject: [PATCH 1/4] docs: align `_tools/licenses/infer` with namespace conventions Populated the empty `## Examples` section in the README using the existing `examples/index.js` content (a populated Examples section is present in 82% of `_tools/licenses/*` siblings). https://claude.ai/code/session_01SDghDzwtXE919uC6TaiRih --- .../@stdlib/_tools/licenses/infer/README.md | 27 ++++++++++++++++--- 1 file changed, 24 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/licenses/infer/README.md b/lib/node_modules/@stdlib/_tools/licenses/infer/README.md index 77d207d97dab..f212afcf62e3 100644 --- a/lib/node_modules/@stdlib/_tools/licenses/infer/README.md +++ b/lib/node_modules/@stdlib/_tools/licenses/infer/README.md @@ -68,11 +68,32 @@ function onInfer( error, results ) {
- -``` --> +```javascript +var licenses = require( '@stdlib/_tools/licenses/licenses' ); +var infer = require( '@stdlib/_tools/licenses/infer' ); + +var pattern = '{readme*,licen[cs]e*,copying*}'; + +licenses( onResults ); + +function onResults( error, results ) { + if ( error ) { + throw error; + } + infer( results, pattern, onInfer ); +} + +function onInfer( error, results ) { + if ( error ) { + throw error; + } + console.dir( results ); +} +```
From 0f12f32bfd277a64e623985bdb8b9272061fc1ba Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 28 Apr 2026 00:29:42 +0000 Subject: [PATCH 2/4] docs: align `_tools/licenses/licenses` with namespace conventions Populated the empty `## Examples` section in the README using the existing `examples/index.js` content (a populated Examples section is present in 82% of `_tools/licenses/*` siblings). https://claude.ai/code/session_01SDghDzwtXE919uC6TaiRih --- .../@stdlib/_tools/licenses/licenses/README.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/licenses/licenses/README.md b/lib/node_modules/@stdlib/_tools/licenses/licenses/README.md index c9a778dc965c..21c61e0d445a 100644 --- a/lib/node_modules/@stdlib/_tools/licenses/licenses/README.md +++ b/lib/node_modules/@stdlib/_tools/licenses/licenses/README.md @@ -97,11 +97,22 @@ function onResults( error, results ) {
- -``` --> +```javascript +var licenses = require( '@stdlib/_tools/licenses/licenses' ); + +licenses( onResults ); + +function onResults( error, results ) { + if ( error ) { + throw error; + } + console.log( JSON.stringify( results ) ); +} +```
From 592fa60d1423c3feab7e5cb9455d1689c46f2a5c Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 28 Apr 2026 00:35:29 +0000 Subject: [PATCH 3/4] Revert "docs: align `_tools/licenses/licenses` with namespace conventions" This reverts commit 0f12f32bfd277a64e623985bdb8b9272061fc1ba. --- .../@stdlib/_tools/licenses/licenses/README.md | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/licenses/licenses/README.md b/lib/node_modules/@stdlib/_tools/licenses/licenses/README.md index 21c61e0d445a..c9a778dc965c 100644 --- a/lib/node_modules/@stdlib/_tools/licenses/licenses/README.md +++ b/lib/node_modules/@stdlib/_tools/licenses/licenses/README.md @@ -97,22 +97,11 @@ function onResults( error, results ) {
-## Examples + +``` javascript -```javascript -var licenses = require( '@stdlib/_tools/licenses/licenses' ); - -licenses( onResults ); - -function onResults( error, results ) { - if ( error ) { - throw error; - } - console.log( JSON.stringify( results ) ); -} -``` +``` -->
From ba706aaff642fda82b1ce49dbf6ef6265886e8de Mon Sep 17 00:00:00 2001 From: Claude Date: Tue, 28 Apr 2026 00:35:29 +0000 Subject: [PATCH 4/4] Revert "docs: align `_tools/licenses/infer` with namespace conventions" This reverts commit 84d0b7af688a4613e0d654a700890b174e0faba0. --- .../@stdlib/_tools/licenses/infer/README.md | 27 +++---------------- 1 file changed, 3 insertions(+), 24 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/licenses/infer/README.md b/lib/node_modules/@stdlib/_tools/licenses/infer/README.md index f212afcf62e3..77d207d97dab 100644 --- a/lib/node_modules/@stdlib/_tools/licenses/infer/README.md +++ b/lib/node_modules/@stdlib/_tools/licenses/infer/README.md @@ -68,32 +68,11 @@ function onInfer( error, results ) {
-## Examples + +``` javascript -```javascript -var licenses = require( '@stdlib/_tools/licenses/licenses' ); -var infer = require( '@stdlib/_tools/licenses/infer' ); - -var pattern = '{readme*,licen[cs]e*,copying*}'; - -licenses( onResults ); - -function onResults( error, results ) { - if ( error ) { - throw error; - } - infer( results, pattern, onInfer ); -} - -function onInfer( error, results ) { - if ( error ) { - throw error; - } - console.dir( results ); -} -``` +``` -->