Gathering detailed insights and metrics for typeorm-postgres-naming-strategies
Gathering detailed insights and metrics for typeorm-postgres-naming-strategies
Gathering detailed insights and metrics for typeorm-postgres-naming-strategies
Gathering detailed insights and metrics for typeorm-postgres-naming-strategies
npm install typeorm-postgres-naming-strategies
Typescript
Module System
Node Version
NPM Version
57.2
Supply Chain
61.8
Quality
74.2
Maintenance
100
Vulnerability
99.3
License
TypeScript (94.78%)
JavaScript (5.22%)
Love this project? Help keep it running — sponsor us today! 🚀
Total Downloads
23,697
Last Day
18
Last Week
92
Last Month
488
Last Year
6,105
MIT License
1 Stars
32 Commits
1 Branches
1 Contributors
Updated on Oct 03, 2022
Minified
Minified + Gzipped
Latest Version
3.0.2
Package Id
typeorm-postgres-naming-strategies@3.0.2
Unpacked Size
11.74 kB
Size
3.59 kB
File Count
17
NPM Version
8.19.2
Node Version
18.12.0
Cumulative downloads
Total Downloads
Last Day
-28%
18
Compared to previous day
Last Week
-20.7%
92
Compared to previous week
Last Month
65.4%
488
Compared to previous month
Last Year
-3.2%
6,105
Compared to previous year
This package provides a few (one, at the moment) useful custom naming strategies. It alterates the name of columns, relations and other fields in database.
For example, using the snake strategy, if you have a model like this:
1class User { 2 @Column() 3 createdAt; 4}
In the DB the createdAt
field will be created_at
It's available as an npm package
1npm install typeorm-postgres-naming-strategies --save
Or using yarn
1yarn add typeorm-postgres-naming-strategies
1import { createConnection } from 'typeorm'; 2import { PostgresNamingStrategy } from 'typeorm-postgres-naming-strategies'; 3 4await createConnection({ 5 ... 6 namingStrategy: new PostgresNamingStrategy(), // Here you'r using the strategy! 7});
Alternatively you can use it in combination with a ormconfig.js
1// Use require instead of import 2const PostgresNamingStrategy = require("typeorm-postgres-naming-strategies").PostgresNamingStrategy 3 4module.exports = { 5 ... 6 namingStrategy: new PostgresNamingStrategy(), 7}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
13 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-02-10
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More