Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
gitbook-api
Advanced tools
This is a javascript/node client library for the GitBook (https://www.gitbook.com) API.
This API is promise-based.
$ npm install gitbook-api
var GitBook = require("gitbook-api");
var client = new GitBook();
Create an API client with an authentified user:
var client = new GitBook({
username: "MyUsername",
token: "password or token"
});
To use this api client with a GitBook Enterprise instance, simply add a host
option, example: "host": "http://gitbook.mycompany.com"
.
List books fron the authenticated user:
client.books()
.then(function(result) {
// result.list: list of books
// result.total: total count of books
}, function(err) {
// Error occured
});
List all public books:
client.books('all')
Use pagination:
client.books({ skip: 50, limit: 100 })
client.books('all', { skip: 50, limit: 100 })
client.book("GitBookIO/javascript").then(function(book) { });
client.author("GitBookIO").then(function(org) { });
FAQs
API Client for GitBook.com (gitbook.com)
The npm package gitbook-api receives a total of 0 weekly downloads. As such, gitbook-api popularity was classified as not popular.
We found that gitbook-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 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 researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.