Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/loicmahieu/sequelize-utils

Set of utilities for Sequelize
https://github.com/loicmahieu/sequelize-utils

Last synced: 27 days ago
JSON representation

Set of utilities for Sequelize

Awesome Lists containing this project

README

        

sequelize-utils
===============

```
npm install --save sequelize-utils
```

# Properties

## JSON

### Options

`indent`: Causes the resulting string to be pretty-printed. Default: 2

```
Model = sequelize.define('utils_property_list', {
prop: utils.property.json('prop')
});
```

## List

### Options

`separator`: Delimiter. Default: ','

```
Model = sequelize.define('utils_property_list', {
prop: utils.property.list('prop')
});
```