Skip to content

ZEXagonal-mente/nvton

Repository files navigation

NVTON - Novout Object Notation

A key-value management focused in compatible with other format data files and a minimal reabiliable components.

Features

  • ✅ Vue and Nuxt Plugin
  • ✅ Local or File Object
  • ✅ Support JSON
  • ✅ Exclude Wrong Data
  • ✅ Supports Node v20+

Syntax

[
  'foo',
  true,
  undefined,
  0,
  nan,
  infinity,
  -infinity,
  { foo: 0 },
  [
    ['key1' | 'value'],
    ['key2' | 0],
    ['key3' | false], 
    [4 | null],
    ['key5' | { bar: 0 }]
  ]
]

Install

npm install -D nvton yarn add nvton pnpm add nvton bun add nvton

Work in Progress!!!

Config

Use local config (nvton.config.ts)

export default {
  // config here
}

Use specific config in code

//...
const nvt = nvton('[0]', { 'config': 'here' })
//...

Default Config

{
  merge: {
    number: false
    object: false,
  },
  warnings: {
    wrongKey: false,
  }
}

Use

Work in Progress!!!

About

Novout Object Notation - A key-value management for better data control

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published