UNPKG

@ts.adligo.org/slink

Version:

This is a simple Type Script Application that will create symbolic links from webpack config files with links created by webpack-link inside of your source folder, which improves speed of changing upstream Javascript or Typescript in a multiple project sy

21 lines (17 loc) 527 B
const { output } = require('proc-log') const getIdentity = require('../utils/get-identity.js') const BaseCommand = require('../base-cmd.js') class Whoami extends BaseCommand { static description = 'Display npm username' static name = 'whoami' static params = ['registry'] async exec () { const username = await getIdentity(this.npm, { ...this.npm.flatOptions }) if (this.npm.config.get('json')) { output.buffer(username) } else { output.standard(username) } } } module.exports = Whoami