Skip to content

Commit

Permalink
Updating app files
Browse files Browse the repository at this point in the history
  • Loading branch information
tarsislimadev authored Aug 1, 2024
1 parent c40fa01 commit 573502f
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# [@brtmvdl/database](https://www.npmjs.com/package/@brtmvdl/database)

Easy Database Node.js library

[![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/brtmvdl/database/npm-publish.yml?label=GitHub%20Actions&link=https%3A%2F%2Fgithub.com%2Fbrtmvdl%2Fdatabase%2Factions%2Fworkflows%2Fnpm-publish.yml)](https://github.com/brtmvdl/database/actions/workflows/npm-publish.yml) [![npm](https://img.shields.io/npm/dw/%40brtmvdl/database?label=NPM%20Weekly%20Downloads)](https://www.npmjs.com/package/@brtmvdl/database) [![github/stars](https://img.shields.io/github/stars/brtmvdl/database?style=social)](https://img.shields.io/github/stars/brtmvdl/database?style=social)

## social & donate

[Donate](https://link.mercadopago.com.br/brtmvdl) - [Telegram](https://t.me/+KRmg5MlqgMk0MTg5) - [Discord](https://discord.gg/2zWpWBgmPj)

## how to install

```bash
# bash

npm i @brtmvdl/database
```

## how to use

```js
// index.mjs

import { Database } from '@brtmvdl/database'

const db = new Database({ type: 'fs', config: '/data' })

const users = db.in('users')

const user = users.new()

user.writeMany({ email: '[email protected]', password: 'password' })

console.log('user', user.readManyString(['email', 'password']))
```

```sh
# bash

node index.mjs
```

## author

[@brtmvdl](https://www.linkedin.com/in/brtmvdl/)

## license

[MIT](./LICENSE)

0 comments on commit 573502f

Please sign in to comment.