Skip to content

Commit 491502e

Browse files
committed
feat: init
0 parents  commit 491502e

21 files changed

+2488
-0
lines changed

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# EditorConfig is awesome: https://EditorConfig.org
2+
3+
# top-most EditorConfig file
4+
root = true
5+
6+
[*]
7+
indent_style = space
8+
indent_size = 2
9+
end_of_line = lf
10+
charset = utf-8
11+
trim_trailing_whitespace = false
12+
insert_final_newline = false

.github/workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
10+
strategy:
11+
matrix:
12+
node-version: [18.x, 24.x]
13+
14+
steps:
15+
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v5.0.0
16+
- name: Install pnpm
17+
uses: pnpm/action-setup@f2b2b233b538f500472c7274c7012f57857d8ce0 # v4.1.0
18+
with:
19+
version: 10
20+
21+
- name: Install Node.js
22+
uses: actions/setup-node@d7a11313b581b306c961b506cfc8971208bb03f6 # v4.4.0
23+
with:
24+
node-version: 24
25+
cache: 'pnpm'
26+
27+
- name: Install Dependencies
28+
run: pnpm install
29+
30+
- name: Run test
31+
run: pnpm run test

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
.vscode
2+
node_modules
3+
dist
4+
coverage

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"printWidth": 90,
3+
"singleQuote": true,
4+
"trailingComma": "es5",
5+
"useTabs": true
6+
}

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 Giovane Cardoso
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# NVTON - Novout Object Notation
2+
3+
<h3 align="center">
4+
<b>A key-value management focused in compatible with other format data files and a minimal reabiliable components.</b>
5+
<h3>
6+
7+
<p align="center">
8+
<a href="https://github.com/Novout/nvton"><img src="https://img.shields.io/github/license/Novout/nvton?style=for-the-badge&color=DAE8F3&label="></a>
9+
<a href="https://github.com/Novout/nvton"><img src="https://img.shields.io/github/package-json/v/Novout/nvton?style=for-the-badge&color=DAE8F3&label="></a>
10+
<p>
11+
12+
## Features
13+
14+
- ✅ Local or File Object
15+
- ✅ Support JSON
16+
- ✅ Exclude Wrong Data
17+
18+
## Syntax
19+
20+
```ts
21+
[
22+
'foo',
23+
true,
24+
undefined,
25+
0,
26+
nan,
27+
infinity,
28+
-infinity,
29+
{ foo: 0 },
30+
[
31+
['key1' | 'value'],
32+
['key2' | 0],
33+
['key3' | false],
34+
[4 | null],
35+
['key5' | { bar: 0 }]
36+
]
37+
]
38+
```
39+
40+
## Install
41+
42+
### Work in Progress!!!
43+
44+
## Use
45+
46+
### Work in Progress!!!

generi.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
{
2+
"repository": "https://github.com/Novout/nvton",
3+
"silent": false,
4+
"commits": "conventional-commits",
5+
"tag": true,
6+
"version": true,
7+
"push": true,
8+
"release": false,
9+
"publish": false,
10+
"exclude": [" typo"],
11+
"prerelease": "beta",
12+
"packagePath": false,
13+
"lernaPath": false
14+
}

package.json

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"name": "nvton",
3+
"version": "0.0.0",
4+
"description": "NVTON - Novout Object Notation",
5+
"repository": {
6+
"type": "git",
7+
"url": "https://github.com/Novout/nvton"
8+
},
9+
"bugs": {
10+
"url": "https://github.com/Novout/nvton/issues"
11+
},
12+
"homepage": "https://github.com/Novout/nvton/",
13+
"author": "Giovane Cardoso",
14+
"license": "MIT",
15+
"type": "module",
16+
"publishConfig": {
17+
"access": "public"
18+
},
19+
"engines": {
20+
"node": ">=18.0.0"
21+
},
22+
"main": "dist/index.js",
23+
"types": "dist/index.d.ts",
24+
"files": [
25+
"dist/**/*",
26+
"package.json",
27+
"LICENSE"
28+
],
29+
"keywords": [
30+
"object",
31+
"notation",
32+
"json",
33+
"data"
34+
],
35+
"scripts": {
36+
"dev": "pnpm format && tsdown",
37+
"dev:watch": "pnpm format && tsdown --watch",
38+
"build": "pnpm format && tsdown --minify",
39+
"test": "vitest run --coverage",
40+
"test:dev": "vitest",
41+
"format": "prettier --write src/ tests/",
42+
"prepublishOnly": "pnpm build",
43+
"patch": "pnpm build && generi log patch",
44+
"minor": "pnpm build && generi log minor",
45+
"major": "pnpm build && generi log major"
46+
},
47+
"packageManager": "[email protected]",
48+
"dependencies": {
49+
"destr": "^2.0.5",
50+
"fs-extra": "^11.3.2",
51+
"pathe": "^2.0.3"
52+
},
53+
"devDependencies": {
54+
"@types/fs-extra": "^11.0.4",
55+
"@types/node": "^24.9.1",
56+
"@vitest/coverage-v8": "3.2.4",
57+
"generi": "^1.4.1",
58+
"prettier": "^3.6.2",
59+
"tsdown": "^0.15.9",
60+
"typescript": "^5.9.3",
61+
"vitest": "^3.2.4"
62+
}
63+
}

0 commit comments

Comments
 (0)