
Research
Two Malicious Rust Crates Impersonate Popular Logger to Steal Wallet Keys
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
prismadocify
Advanced tools
Generate documentation for Prisma schemas.
prismadocify
is a command-line tool that generates markdown documentation for Prisma schemas. It reads your Prisma schema file, parses the models and enums, and outputs a markdown file documenting the schema.
npm install prismadocify
yarn add prismadocify
After installing prismadocify
, you can use it from the command line to generate documentation for your Prisma schema.
prismadocify
By default, prismadocify
looks for the Prisma schema file at ./prisma/schema.prisma
and generates the documentation in ./prisma-docs.md
.
Make sure your Prisma schema file is located at ./prisma/schema.prisma
.
Run the prismadocify
command:
prismadocify
Check the generated prisma-docs.md
file in the root directory of your project.
Make sure your Prisma schema file is located at ./prisma/schema.prisma
.
Run the prismadocify
command:
prismadocify
Check the generated prisma-docs.md
file in the root directory of your project.
Here is an example of a simple Prisma schema and the generated documentation:
Prisma Schema (schema.prisma
)
generator client {
provider = "prisma-client-js"
}
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
model User {
id String @id @default(uuid())
email String @unique
name String?
role UserRole @default(USER)
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
@@map("users")
}
enum UserRole {
ADMIN
USER
}
Generated Markdown Documentation (prisma-docs.md
)
# Prisma Schema Documentation
## User
| Field | Type | List | Required | Unique |
|-----------|-----------|------|----------|--------|
| id | String | No | Yes | No |
| email | String | No | Yes | Yes |
| name | String? | No | No | No |
| role | UserRole | No | Yes | No |
| createdAt | DateTime | No | Yes | No |
| updatedAt | DateTime | No | Yes | No |
## Enums
### UserRole
---
ADMIN, USER
Currently, prismadocify
does not support additional options. It follows the convention of looking for the Prisma schema file at the default location (./prisma/schema.prisma
). Future versions may include support for specifying custom paths and other options.
Contributions are welcome! Please open an issue or submit a pull request to contribute.
If you encounter a bug or have a feature request, please create an issue on GitHub.
To create an issue, go to the issues page and click on the "New issue" button.
This project is licensed under the MIT License.
Thanks to the Prisma team for their awesome ORM and inspiration for this tool.
FAQs
Generate documentation for Prisma schemas.
The npm package prismadocify receives a total of 0 weekly downloads. As such, prismadocify popularity was classified as not popular.
We found that prismadocify demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.
Research
A malicious package uses a QR code as steganography in an innovative technique.
Research
/Security News
Socket identified 80 fake candidates targeting engineering roles, including suspected North Korean operators, exposing the new reality of hiring as a security function.