changed package name to t-console

This commit is contained in:
Earther 2021-08-24 19:45:23 +07:00
parent 63319e4da8
commit 256b48510f
3 changed files with 6 additions and 6 deletions

2
cli.js
View File

@ -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:

View File

@ -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;

View File

@ -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": {