
Product
A New Overview in our Dashboard
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.
Simple fetch library for me.
Use npm.
$ npm install --save ajx
API reference is /docs.
const ajx = require("ajx")
async showExampleCom() {
// Send a HTTP GET request.
const html = await ajx.get("http://example.com/")
console.log(html)
}
showExampleCom()
The requests are cancellable.
const ajx = require("ajx")
async showExampleCom(cancelToken) {
const html = await ajx.get("http://example.com/", {cancelToken})
console.log(html)
}
const ct = ajx.CancelToken.new()
showExampleCom(ct).catch(error => {
if (ajx.isCancel(error)) {
console.log("canceled:", error.message)
} else {
console.error("some errors:", error.message)
}
})
ct.cancel("some reason")
Welcome contributing!
Please use GitHub's Issues/PRs.
npm test
runs tests.npm run docs
opens the current documents by your default browser.npm run update-docs
generates documents from the current source code.npm run watch
runs tests and measures coverage when source code are changed.FAQs
Simple fetch library for me.
The npm package ajx receives a total of 905 weekly downloads. As such, ajx popularity was classified as not popular.
We found that ajx 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.
Product
We redesigned Socket's first logged-in page to display rich and insightful visualizations about your repositories protected against supply chain threats.
Product
Automatically fix and test dependency updates with socket fix—a new CLI tool that turns CVE alerts into safe, automated upgrades.
Security News
CISA denies CVE funding issues amid backlash over a new CVE foundation formed by board members, raising concerns about transparency and program governance.