├── .gitignore ├── License ├── README.md ├── index.js ├── package-lock.json └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ -------------------------------------------------------------------------------- /License: -------------------------------------------------------------------------------- 1 | Console shortener 2 | Copyright (C) 2022 💯🤣 3 | 4 | This program is free software: you can redistribute it and/or modify 5 | it under the terms of the GNU Affero General Public License as 6 | published by the Free Software Foundation, either version 3 of the 7 | License, or (at your option) any later version. 8 | 9 | This program is distributed in the hope that it will be useful, 10 | but WITHOUT ANY WARRANTY; without even the implied warranty of 11 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 | GNU Affero General Public License for more details. 13 | 14 | You should have received a copy of the GNU Affero General Public License 15 | along with this program. If not, see . 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ## console-m 2 | 3 | Inspired by the best practices preached by 10x Developer 4 | 5 | ## Installation 6 | 7 | ``` 8 | npm i console-m 9 | ``` 10 | 11 | ## Usage 12 | 13 | Import `c` from the package 14 | 15 | ``` 16 | import { c } from 'console-m'; 17 | ``` 18 | 19 | Use it anywhere in your code! 20 | 21 | ## Examples 22 | 23 | ``` 24 | c('Hello, World!') 25 | ``` 26 | 27 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | const log = require('simple-node-logger').createSimpleLogger(); 2 | 3 | const console_init = () => { 4 | log.setLevel('trace'); 5 | log.log("Initializing Console Logger") 6 | let cons = console.log.bind(document); 7 | log.log("Console Logger Function initialized and bound"); 8 | return cons; 9 | } 10 | 11 | const c = console_init(); 12 | 13 | module.exports = { 14 | c 15 | } -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "console-m", 3 | "version": "1.0.1", 4 | "lockfileVersion": 3, 5 | "requires": true, 6 | "packages": { 7 | "": { 8 | "name": "console-m", 9 | "version": "1.0.1", 10 | "license": "MIT", 11 | "dependencies": { 12 | "simple-node-logger": "^21.8.12" 13 | } 14 | }, 15 | "node_modules/lodash": { 16 | "version": "4.17.21", 17 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", 18 | "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" 19 | }, 20 | "node_modules/moment": { 21 | "version": "2.29.4", 22 | "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", 23 | "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==", 24 | "engines": { 25 | "node": "*" 26 | } 27 | }, 28 | "node_modules/simple-node-logger": { 29 | "version": "21.8.12", 30 | "resolved": "https://registry.npmjs.org/simple-node-logger/-/simple-node-logger-21.8.12.tgz", 31 | "integrity": "sha512-RPImnYDq3jdUjaTvYLghaF1n65Dd0LV8hdZtlT0X1NZBAkw+lx0ZJtFydcUyYKjg0Yxd27AW9IAIc3OLhTjBzA==", 32 | "dependencies": { 33 | "lodash": "^4.17.12", 34 | "moment": "^2.20.1" 35 | } 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "console-m", 3 | "version": "1.0.1", 4 | "description": "Blazingly short console log alternative", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [ 10 | "console.log", 11 | "console", 12 | "print" 13 | ], 14 | "author": "@SergiiKirianov", 15 | "license": "MIT", 16 | "dependencies": { 17 | "simple-node-logger": "^21.8.12" 18 | } 19 | } 20 | --------------------------------------------------------------------------------