changesets-logger 0.1.0
Install from the command line:
Learn more about npm packages
$ npm install @fond-of/changesets-logger@0.1.0
Install via package.json:
"@fond-of/changesets-logger": "0.1.0"
About this version
import { error } from '@fond-of/changesets-logger";
error('message part 1', 'message part 2');
error: Use error
to print error messages upon which users which immediately action to complete the task.
info: Use info
to print informational messages to user.
log: Use log
to print messages don't fall in any other specific category. For example, message to show title of the step being performed by the changesets tool.
success: Use success
to assert to users that their instructions have completed successfully.
warn: Use warn
to print warning messages, something that user could action on now or later without much impact of their work.
Use the @fond-of/changesets-test-utils
package to silence the logs in test cases.
For example:
import { temporarilySilenceLogs } from "@fond-of/changesets-test-utils";
import { log } from "@fond-of/changesets-logger";
temporarilySilenceLogs();
// Now the logs in this test file are not actually logged to std out
log("I am not logged");
// Use console.log to log messages in tests if required
console.log("Yay, I am logged");
Details
- changesets-logger
- fond-of
- 4 months ago
- MIT
- 1 dependencies
Assets
- changesets-logger-0.1.0.tgz
Download activity
- Total downloads 16
- Last 30 days 0
- Last week 0
- Today 0