[ Root System Explorer ]
Location:
Root
/
opt
/
alt
/
alt-nodejs20
/
root
/
usr
/
lib
/
node_modules
/
npm
/
node_modules
/
normalize-package-data
/
lib
+ Folder
+ File
Upload
Editing: make_warning.js
var util = require('util') var messages = require('./warning_messages.json') module.exports = function () { var args = Array.prototype.slice.call(arguments, 0) var warningName = args.shift() if (warningName === 'typo') { return makeTypoWarning.apply(null, args) } else { var msgTemplate = messages[warningName] ? messages[warningName] : warningName + ": '%s'" args.unshift(msgTemplate) return util.format.apply(null, args) } } function makeTypoWarning (providedName, probableName, field) { if (field) { providedName = field + "['" + providedName + "']" probableName = field + "['" + probableName + "']" } return util.format(messages.typo, providedName, probableName) }
SAVE CHANGES
[ CANCEL ]
Name
Type
Actions
.. (Parent Directory)
📄 extract_description.js
FILE
Ren
[EDIT]
DEL
📄 fixer.js
FILE
Ren
[EDIT]
DEL
📄 make_warning.js
FILE
Ren
[EDIT]
DEL
📄 normalize.js
FILE
Ren
[EDIT]
DEL
📄 safe_format.js
FILE
Ren
[EDIT]
DEL
📄 typos.json
FILE
Ren
[EDIT]
DEL
📄 warning_messages.json
FILE
Ren
[EDIT]
DEL