Skip to content

Commit

Permalink
v2.0.0-alpha.2
Browse files Browse the repository at this point in the history
  • Loading branch information
onurravli committed Oct 13, 2024
0 parents commit 78b0baf
Show file tree
Hide file tree
Showing 11 changed files with 1,314 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
dist/
21 changes: 21 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2024 Onur Ravli

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
44 changes: 44 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
<p align="center">
<?xml version="1.0" encoding="utf-8"?>
<!-- Generator: Adobe Illustrator 27.2.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
<svg width=200 version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
viewBox="0 0 722.6 515.8" style="enable-background:new 0 0 722.6 515.8;" xml:space="preserve">
<style type="text/css">
.st0{fill-rule:evenodd;clip-rule:evenodd;fill:#EF4444;}
</style>
<path class="st0" d="M0.9,117.6c0,0,70.9-9.1,70.9,82.4S67,646.4,596,464.8c0,0-140.5-10.7-197-75.1c0,0,132.9-5.5,190.8-189.4
S722.6,36,722.6,36S481.4-56.3,364.8,54.6S260.2,174.1,219.8,157S156.5,39.3,71.6,47S0.9,117.6,0.9,117.6z"/>
</svg>
</p>

# Guvercin

Guvercin (Turkish word for "dove", pronounced `/ɡyverˈdʒin/`) is a very simple logger library for Node.js.

## Installation

```bash
npm i guvercin
```

## Usage

```javascript
import { Guvercin } from "guvercin";

const guvercin = new Guvercin({
enabled: true;
showTime: true;
saveToLocal: boolean;
logFilePath: "./logs";
separator?: "#";
name?: "Logger";
scope?: "users-controller";
});

guvercin.debug("This is a debug message");
guvercin.error("This is an error message");
guvercin.info("This is an info message");
guvercin.success("This is a success message");
guvercin.warning("This is a warning message");
```
17 changes: 17 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import globals from "globals";
import pluginJs from "@eslint/js";
import tseslint from "typescript-eslint";

export default [
{ files: ["**/*.{js,mjs,cjs,ts}"] },
{
languageOptions: {
parserOptions: {
warnOnUnsupportedTypeScriptVersion: false,
},
globals: globals.node,
},
},
pluginJs.configs.recommended,
...tseslint.configs.recommended,
];
43 changes: 43 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
"name": "guvercin",
"description": "Guvercin (Turkish word for 'dove', pronounced `/ɡyverˈdʒin/`) is a very simple logger library for Node.js.",
"version": "2.0.0-alpha.2",
"author": {
"name": "Onur Ravli",
"email": "[email protected]",
"url": "https://onurravli.com"
},
"maintainers": [
{
"name": "Onur Ravli",
"email": "[email protected]",
"url": "https://onurravli.com"
}
],
"type": "commonjs",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"build": "tsc",
"build:watch": "tsc --watch",
"format": "prettier --check .",
"format:fix": "prettier --write .",
"lint": "eslint \"**/*.ts\"",
"lint:fix": "eslint \"**/*.ts\" --fix"
},
"files": [
"dist/**/*"
],
"devDependencies": {
"@eslint/js": "^9.12.0",
"@types/node": "^22.7.5",
"eslint": "^9.12.0",
"globals": "^15.11.0",
"prettier": "^3.3.3",
"typescript": "^5.6.3",
"typescript-eslint": "^8.8.1"
},
"dependencies": {
"chalk": "4.1.2"
}
}
Loading

0 comments on commit 78b0baf

Please sign in to comment.