0.0.2 • Published 3 years ago

snowdb v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

SNOWBASE

Suporte: Discord.gg/AxcQf5Pf58

Um package brasileiro, usando json e fs, antes de iniciar crie um arquivo fora de qualquer pasta chamado snowbase ('./snowbase')

Instalação

npm i snowbase

Formas de uso:

PEGAR UM VALOR

const snowdb = require('snowbase');
snowdb.get(`some_bag`)// 10

PEGAR TODOS OS VALORES

const snowdb = require('snowbase');
snowdb.getAll()// [ { database: 'some_bag', value: 10 } ]

SALVAR UM VALOR

const snowdb = require('snowbase')
snowdb.save('some_bag', 150)// 150

DELETAR UM VALOR

const snowdb = require('snowbase');
snowdb.remove(`some_bag`)// null
0.0.2

3 years ago