
Security News
The Changelog Podcast: Practical Steps to Stay Safe on npm
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.
@synconset/typeormgen
Advanced tools
Generate typeorm models from your database tables
Options:
--base, -b Path to a file containing a class for the model
to exend. The class should be the default
export
--host, -h Database host url
--port, -p Port the database is exposed on
--user, -u Database username
--password Database password
--configFile Path to json config file
--envFile Path to env file to be parsed by dotenv
--database, -d Database name
--table, -t Table name to generate a model for [required]
--model, -m Model class name. Will default to converting
snake case table name to PascalCase
--moment Use Date | Moment for the type for dates instead
of just Date [boolean]
--rules, -r Output a static rules function that returns
basic joi validation rules [boolean]
--toJSON Output a toJSON function that returns the
model's properties
--pluralization Whether the name of the model should be plural
e.g., table users to model Users or User
--out, -o Path to where model file will be written
[required]
--tabs Use tabs instead of spaces [boolean]
--tabSize Number of spaces to indent lines
--primaryGeneratedColumn Column to decorate with
@PrimaryGeneratedColumn()
--primaryGeneratedColumnUUID Column to decorate with
@PrimaryGeneratedColumn('uuid')
--primaryColumn Column to decorate with @PrimaryColumn()
--createDateColumn Column to decorate with @CreateDateColumn()
--updateDateColumn Column to decorate with @UpdateDateColumn()
--versionColumn Column to decorate with @VersionColumn()
--help Show help [boolean]
{
"host": "localhost",
"port": 3306,
"user": "user",
"password": "password",
"database": "database",
"rules": true,
"toJSON": true,
"pluralization": false,
"moment": true,
"tabSize": 2
}
MYSQL_HOST=localhost
MYSQL_PORT=3306
MYSQL_DATABASE=database
MYSQL_USER=user
MYSQL_PASSWORD=password
TYPEORMGEN_HOST=localhost
TYPEORMGEN_CONFIG_FILE=/home/user/config.json
TYPEORMGEN_ANY_OPTION
FAQs
Generate typeorm models from your database tables
We found that @synconset/typeormgen demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 19 open source maintainers collaborating on the project.
Did you know?

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.

Security News
Learn the essential steps every developer should take to stay secure on npm and reduce exposure to supply chain attacks.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.