diff --git a/cli.js b/cli.js index ac25235..e750ba3 100755 --- a/cli.js +++ b/cli.js @@ -124,7 +124,7 @@ const startServer = (options) => { const args = minimist(process.argv.slice(2)); if ("help" in args) { console.log(` -Termsole - Console to your terminal +TConsole - Console to your terminal Options: diff --git a/index.js b/index.js index 64048b8..100ac35 100755 --- a/index.js +++ b/index.js @@ -34,8 +34,8 @@ const release = (defaultConsole) => { ws = null; } -const termsole = (options = {}) => { - // Ensure termsole doesn't run in production mode +const tconsole = (options = {}) => { + // Ensure tconsole doesn't run in production mode if (process && process.env.NODE_ENV && process.env.NODE_ENV !== 'development') return; 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... } -export default termsole; +export default tconsole; diff --git a/package.json b/package.json index b357bff..bce5dcd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { - "name": "termsole", - "version": "1.0.1", + "name": "t-console", + "version": "1.0.0", "description": "Console log to terminal", "type": "main", "scripts": {