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-fetch-schema
Advanced tools
Fetch a GraphQL schema from a server and write it to file
npm install graphql-fetch-schema
graphql-fetch-schema <url> [options]
-h, --help output usage information
-V, --version output the version number
-c, --cookie pass additional Cookie header
-g, --graphql write schema.graphql file
-j, --json write schema.json file
-o, --output <directory> write to specified directory
import fetchSchema from 'graphql-fetch-schema'
fetchSchema('https://api.myserver.com/graphql', {
json: true,
graphql: false,
outputPath: '../schema',
cookie: 'cookiename=foo;',
headers: {
Authorization: 'Bearer token'
}
}).then(
() => {
console.log('Schema successfully written')
},
err => {
console.error(err)
},
)
MIT
FAQs
Fetch a GraphQL schema from a server and write it to file
The npm package graphql-fetch-schema receives a total of 102 weekly downloads. As such, graphql-fetch-schema popularity was classified as not popular.
We found that graphql-fetch-schema demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 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.