Skip to content

Instantly share code, notes, and snippets.

@re4388
Last active August 29, 2021 04:05
Show Gist options
  • Save re4388/936bb7822ef5b594e33169c4eaf94d9c to your computer and use it in GitHub Desktop.
Save re4388/936bb7822ef5b594e33169c4eaf94d9c to your computer and use it in GitHub Desktop.
Export @code Extensions to a Markdown List (borrow from https://gist.github.com/elijahmanor/7f9762a4c2296839ad33e33513e88043)

run npx https://gist.github.com/re4388/936bb7822ef5b594e33169c4eaf94d9c

to log vscode extension

#!/usr/bin/env node
const { exec } = require("child_process");
exec("code --list-extensions", (err, stdout) => {
if (err) { return; }
const markdown = stdout.split("\n").filter( e => e ).map(extension =>
`* [${extension}](https://marketplace.visualstudio.com/items\?itemName\=${extension})`
).join("\n");
console.log(markdown);
});
{
"name": "vscode-extension-markdown",
"version": "1.0.0",
"bin": "./index.js"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment