# kastor-models

> This package provides an abstraction layer of all Kastor models shared in all endpoints and apps.

Latest version **1.0.3** (published 2018-02-23) · MIT license · 0 weekly downloads

## Install

```sh
npm install kastor-models
pnpm add kastor-models
yarn add kastor-models
bun add kastor-models
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.3 |
| Published | 2018-02-23 |
| First published | 2018-02-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | 8.9.3 |
| Dependencies | 4 |
| Unpacked size | 475 KB |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| Author | Kastor software |
| Maintainers | kastorsoft |

## Links

- npm: https://www.npmjs.com/package/kastor-models
- Repository: git@gitlab.com-k-3:k-3/kastor-models
- npm.io page: https://npm.io/package/kastor-models

## Dependencies (4)

- [pg](https://npm.io/package/pg.md) ^7.4.1
- [dotenv](https://npm.io/package/dotenv.md) ^5.0.0
- [pg-hstore](https://npm.io/package/pg-hstore.md) ^2.3.2
- [sequelize](https://npm.io/package/sequelize.md) ^4.33.3

## Recent versions

- 1.0.3 (latest) — 2018-02-23

## README

# Kastor Models

This package provides an abstraction layer of all Kastor models shared in all endpoints and apps.

## Installation

Using npm:
```
$ npm i --save kastor-models
```
## Usage
Add this package to your project
```json
{
    "dependencies": {
        "kastor-models": "kastor-models"
  }
}

## Implementation

```
# /endpoints/community.js

const pg = require('../datasources').pg;
const models = require('kastor-models');

module.exports = (app) => {
  app.get('/community', (req, res) => {
    models.Community.findAll().then(data => res.json(data));
  });
};
```

## Enjoy

Have fun and good luck.

---
_Source: https://npm.io/package/kastor-models · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
