Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@graphql-codegen/cli
Advanced tools
The @graphql-codegen/cli package is a command-line interface tool that automates the generation of GraphQL types, resolvers, and operation functions based on your GraphQL schema and operations. It supports multiple programming languages and frameworks, making it a versatile tool for developers working with GraphQL.
TypeScript Types Generation
Generates TypeScript typings for GraphQL queries, mutations, and subscriptions, making it easier to work with GraphQL in TypeScript projects. The configuration file 'codegen.yml' specifies the schema and documents locations, plugins, and the output file paths.
graphql-codegen --config codegen.yml
Resolvers Signature
Creates TypeScript or JavaScript signatures for GraphQL resolvers based on the schema. This helps in implementing resolvers by providing type safety and auto-completion in IDEs.
graphql-codegen --config codegen.yml
Fragment Matcher
Generates a utility for optimizing cache behavior with GraphQL clients like Apollo Client by generating a fragment matcher file. This is particularly useful for interfaces and union types in GraphQL.
graphql-codegen --config codegen.yml
An alternative package name that often refers to the same tool as @graphql-codegen/cli. It's not a different package but can sometimes be confused as such due to naming.
TypeGraphQL is a framework for building GraphQL APIs in TypeScript, focusing on defining schemas using classes and decorators. It differs from @graphql-codegen/cli by being more of a full framework rather than just a code generation tool.
Live demo and full documentation: graphql-code-generator.com
Project repository: graphql-code-generator
FAQs
Unknown package
The npm package @graphql-codegen/cli receives a total of 2,267,246 weekly downloads. As such, @graphql-codegen/cli popularity was classified as popular.
We found that @graphql-codegen/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 4 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
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.