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));
|
||||
if ("help" in args) {
|
||||
console.log(`
|
||||
Termsole - Console to your terminal
|
||||
TConsole - Console to your terminal
|
||||
|
||||
Options:
|
||||
|
||||
|
6
index.js
6
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;
|
||||
|
@ -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": {
|
||||
|
Loading…
x
Reference in New Issue
Block a user