changed package name to t-console
This commit is contained in:
parent
63319e4da8
commit
256b48510f
2
cli.js
2
cli.js
@ -124,7 +124,7 @@ const startServer = (options) => {
|
|||||||
const args = minimist(process.argv.slice(2));
|
const args = minimist(process.argv.slice(2));
|
||||||
if ("help" in args) {
|
if ("help" in args) {
|
||||||
console.log(`
|
console.log(`
|
||||||
Termsole - Console to your terminal
|
TConsole - Console to your terminal
|
||||||
|
|
||||||
Options:
|
Options:
|
||||||
|
|
||||||
|
6
index.js
6
index.js
@ -34,8 +34,8 @@ const release = (defaultConsole) => {
|
|||||||
ws = null;
|
ws = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
const termsole = (options = {}) => {
|
const tconsole = (options = {}) => {
|
||||||
// Ensure termsole doesn't run in production mode
|
// Ensure tconsole doesn't run in production mode
|
||||||
if (process && process.env.NODE_ENV && process.env.NODE_ENV !== 'development') return;
|
if (process && process.env.NODE_ENV && process.env.NODE_ENV !== 'development') return;
|
||||||
|
|
||||||
const defaultConsole = Object.assign(Object.create(Object.getPrototypeOf(console)), console);
|
const defaultConsole = Object.assign(Object.create(Object.getPrototypeOf(console)), console);
|
||||||
@ -83,4 +83,4 @@ const sendWhenConnected = (ws, msg, n = 0, maxTries = 100) => {
|
|||||||
}, 10); // wait 10 milisecond for the connection...
|
}, 10); // wait 10 milisecond for the connection...
|
||||||
}
|
}
|
||||||
|
|
||||||
export default termsole;
|
export default tconsole;
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "termsole",
|
"name": "t-console",
|
||||||
"version": "1.0.1",
|
"version": "1.0.0",
|
||||||
"description": "Console log to terminal",
|
"description": "Console log to terminal",
|
||||||
"type": "main",
|
"type": "main",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user