From caa016b19bb9fd96f4bbfb4b110149722d129233 Mon Sep 17 00:00:00 2001 From: Claude Date: Thu, 27 Aug 2026 16:19:31 +0000 Subject: [PATCH] docs: add examples section to `_tools/pkgs/installed` README Populate the previously commented-out `## Examples` section in the README for `_tools/pkgs/installed`, transcribing the package's existing `examples/index.js` and rewriting the require path to the public package name. A JS-API-level Examples section is present in 24 of 25 (96%) sibling packages under `_tools/pkgs`; `installed` was the sole outlier, carrying an empty placeholder despite shipping a runnable example file. Co-Authored-By: Claude Claude-Session: https://claude.ai/code/session_01JsYoEEpvcPyy7QW4LTsyvD --- .../@stdlib/_tools/pkgs/installed/README.md | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/lib/node_modules/@stdlib/_tools/pkgs/installed/README.md b/lib/node_modules/@stdlib/_tools/pkgs/installed/README.md index 5185d8a99e85..eafb2c77ebd9 100644 --- a/lib/node_modules/@stdlib/_tools/pkgs/installed/README.md +++ b/lib/node_modules/@stdlib/_tools/pkgs/installed/README.md @@ -97,11 +97,22 @@ function onPkgs( error, list ) {
- -``` --> +```javascript +var pkgs = require( '@stdlib/_tools/pkgs/installed' ); + +pkgs( onPkgs ); + +function onPkgs( error, list ) { + if ( error ) { + throw error; + } + console.dir( list ); +} +```