simple-output
Advanced tools
Comparing version 0.1.0 to 0.2.0
12
index.js
@@ -8,19 +8,19 @@ var symbols = require('log-symbols'); | ||
function success(msg) { | ||
process.stdout.write(symbols.success + ' ' + msg + '\n'); | ||
module.exports.stdout.write(symbols.success + ' ' + msg + '\n'); | ||
} | ||
function error(msg) { | ||
process.stderr.write(symbols.error + ' ' + msg + '\n'); | ||
module.exports.stderr.write(symbols.error + ' ' + msg + '\n'); | ||
} | ||
function info(msg) { | ||
process.stdout.write(symbols.info + ' ' + msg + '\n'); | ||
module.exports.stdout.write(symbols.info + ' ' + msg + '\n'); | ||
} | ||
function message(msg) { | ||
process.stdout.write(msg + '\n'); | ||
module.exports.stdout.write(msg + '\n'); | ||
} | ||
function warn(msg) { | ||
process.stdout.write(symbols.warning + ' ' + msg + '\n'); | ||
module.exports.stdout.write(symbols.warning + ' ' + msg + '\n'); | ||
} | ||
@@ -33,2 +33,4 @@ | ||
module.exports = { | ||
stdout: process.stdout, | ||
stderr: process.stderr, | ||
success: success, | ||
@@ -35,0 +37,0 @@ error: error, |
{ | ||
"name": "simple-output", | ||
"version": "0.1.0", | ||
"version": "0.2.0", | ||
"main": "lib/simple-output.js", | ||
@@ -41,4 +41,5 @@ "description": "Output messages to stdout/stderr", | ||
"scripts": { | ||
"test": "grunt" | ||
"test": "node test.js" | ||
} | ||
} | ||
# simple-output | ||
version: 0.1.0 | ||
version: 0.2.0 | ||
[![Build Status](https://travis-ci.org/ruyadorno/simple-output.svg?branch=master)](https://travis-ci.org/SunGard-Labs/grunt-sg-release) | ||
Output messages to stdout/stderr | ||
@@ -6,0 +8,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3473
8
72
31