
Company News
/Security News
Socket Selected for OpenAI's Cybersecurity Grant Program
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.
request-with-buffer
Advanced tools
As simple as it gets
import { RequestService } from "request-with-buffer"
const requestService: RequestService = RequestService.getInstance()
const bufferIntervalInMilliSeconds: number = 60 * 60 * 1000 // hourly
const exampleURL: string = "http://api.open-notify.org/iss-now.json"
const options: any = {
url: exampleURL,
}
const result: any =
await requestService.get(options, bufferIntervalInMilliSeconds)
console.log(result)
import { IBufferEntry, RequestService } from "request-with-buffer"
// see basic usage plus:
const exampleURL: string = "http://api.open-notify.org/iss-now.json"
const options: any = {
url: exampleURL,
}
// you might want to check what's in the buffer
const bufferContent: IBufferEntry[] = requestService.getCompleteBufferContent()
// you might want to clear the buffer from time to time
requestService.deleteBuffer()
// you might want to clear a specific buffer entry from time to time
requestService.deleteBufferEntry(options)
If you find any issues or want to share improvement proposals in general feel free to open an issue here.
I am interested in save and useful enhancements. Feel free to create Pull Requests on my Repository.
FAQs
As simple as it gets
We found that request-with-buffer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.

Security News
Socket CEO Feross Aboukhadijeh joins 10 Minutes or Less, a podcast by Ali Rohde, to discuss the recent surge in open source supply chain attacks.

Research
/Security News
Campaign of 108 extensions harvests identities, steals sessions, and adds backdoors to browsers, all tied to the same C2 infrastructure.