New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

sequelize-associate

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sequelize-associate

A helper to associate all sequelize models using the "associate" function.

latest
Source
npmnpm
Version
1.0.5
Version published
Weekly downloads
5
150%
Maintainers
1
Weekly downloads
 
Created
Source

sequelize-associate

sequelize-associate is a javascript library that import models from a directory and associate all together.

Getting Started

These instructions will help you to get and use sequelize-associate on your app.

Installing

npm install --save sequelize-associate

Using

You can use in a index file on your models directory for example:

import sequelizeAssociate from 'sequelize-associate';

sequelizeAssociate(__dirname);

You can also pass some options:

sequelizeAssociate(__dirname, { 
  pattern: /\.model\.js$/, //Match all files that ends with model.js.
  recursive: true //Will search in all subdirectories.
});

Authors

  • Felipe Laera - Software Engineer

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

Keywords

sequelize

FAQs

Package last updated on 18 Aug 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts