Skip to content

Instantly share code, notes, and snippets.

View sebastianhomeier's full-sized avatar

Sebastian Homeier sebastianhomeier

View GitHub Profile
@sebastianhomeier
sebastianhomeier / nvm-list
Last active March 13, 2021 19:11 — forked from mabhub/nvm-list
NVM list global packages
#!/usr/bin/env node
const { promises: fs } = require('fs');
const path = require('path');
(async () => {
const nvmPath = process.env.NVM_DIR;
if (!nvmPath) {
console.error('Unable to detect nvm path. Exiting.');
process.exit(1);