How to use the notice function from npmlog
Find comprehensive JavaScript npmlog.notice code examples handpicked from public code repositorys.
55 56 57 58 59 60 61 62 63 64
move( path.resolve(npm.prefix, PKGLOCK), path.resolve(npm.prefix, SHRINKWRAP), { Promise: BB } ).then(() => { log.notice('', `${PKGLOCK} has been renamed to ${SHRINKWRAP}. ${SHRINKWRAP} will be used for future installations.`) return readFile(path.resolve(npm.prefix, SHRINKWRAP)).then((d) => { return JSON.parse(d) }) }, (err) => {
0
0
1
GitHub: KingKzear/lerna
31 32 33 34 35 36 37 38 39 40
// composed commands are called from other commands, like publish -> version this.composed = typeof argv.composed === "string" && argv.composed !== this.name; if (!this.composed) { // composed commands have already logged the lerna version log.notice("cli", `v${argv.lernaVersion}`); } // launch the command let runner = new Promise((resolve, reject) => {
0
0
0
171 172 173 174 175 176 177 178 179 180
module.exports.logContents = logContents function logContents (tarball) { log.notice('') log.notice('', `${npm.config.get('unicode') ? '📦 ' : 'package:'} ${tarball.name}@${tarball.version}`) log.notice('=== Tarball Contents ===') if (tarball.files.length) { log.notice('', columnify(tarball.files.map((f) => { const bytes = byteSize(f.size) return {path: f.path, size: `${bytes.value}${bytes.unit}`}
0
0
1
+ 17 other calls in file
npmlog.verbose is the most popular function in npmlog (7425 examples)