This repository was archived by the owner on Aug 11, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Expand file tree Collapse file tree 1 file changed +17
-4
lines changed Original file line number Diff line number Diff line change 35
35
var npm = require ( '../lib/npm.js' )
36
36
var npmconf = require ( '../lib/config/core.js' )
37
37
var errorHandler = require ( '../lib/utils/error-handler.js' )
38
- var output = require ( '../lib/utils/output.js' )
39
38
40
39
var configDefs = npmconf . defs
41
40
var shorthands = configDefs . shorthands
82
81
npm . load ( conf , function ( er ) {
83
82
if ( er ) return errorHandler ( er )
84
83
npm . commands [ npm . command ] ( npm . argv , function ( err ) {
85
- // https://www.youtube.com/watch?v=7nfPu8qTiQU
86
- if ( ! err && npm . config . get ( 'ham-it-up' ) && ! npm . config . get ( 'json' ) && ! npm . config . get ( 'parseable' ) && npm . command !== 'completion' ) {
87
- output ( '\n 🎵 I Have the Honour to Be Your Obedient Servant,🎵 ~ npm 📜🖋\n' )
84
+ // https://genius.com/Lin-manuel-miranda-your-obedient-servant-lyrics
85
+ if (
86
+ ! err &&
87
+ npm . config . get ( 'ham-it-up' ) &&
88
+ ! npm . config . get ( 'json' ) &&
89
+ ! npm . config . get ( 'parseable' ) &&
90
+ npm . command !== 'completion'
91
+ ) {
92
+ console . error (
93
+ `\n ${
94
+ npm . config . get ( 'unicode' ) ? '🎵 ' : ''
95
+ } I Have the Honour to Be Your Obedient Servant,${
96
+ npm . config . get ( 'unicode' ) ? '🎵 ' : ''
97
+ } ~ npm ${
98
+ npm . config . get ( 'unicode' ) ? '📜🖋 ' : ''
99
+ } \n`
100
+ )
88
101
}
89
102
errorHandler . apply ( this , arguments )
90
103
} )
You can’t perform that action at this time.
0 commit comments