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.
habitat-client-node
Advanced tools
An axios-powered client wrapper for the Habitat API
npm i habitat-client-node
or for meteor folks...
meteor npm install habitat-client-node
You'll need an API Key - contact us at developers@tryhabitat.com to get started!
const client = new Habitat({
baseUrl: "https://sandbox.tryhabitat.com",
apiKey: "YOUR_API_KEY"
});
//Returns a session token if it wasn't passed into constructor
client.login({
email: "yourusername@tryhabitat.com",
password: "password"
})
.then((token) => {
//set token in localStorage, etc...
});
client.create({
sellerId: sellerId,
thirdParty: false,
deliveryAddress: address,
deliveryInstructions: instructions,
customer: { phone, name },
DaaSType: type
})
//accept an order (Admin / Vendor)
client.accept(orderId).then((order) => {
//what would be helpful to return here?
})
//assign a runner (Admin / Vendor)
client.assign(orderId, {
runnerId: runnerId
}).then((order) => {
//what would be helpful to return here?
})
//pickup an order (Admin / Runner)
client.pickup(orderId).then((order) => {
//what would be helpful to return here?
})
//dropoff an order (Admin / Runner)
client.dropoff(orderId, {
tip: 4.20,
receiptUrl: https://placekitten.com/50/50
}).then((order) => {
//what would be helpful to return here?
})
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning.
This project is licensed under the MIT License - see the LICENSE.md file for details
FAQs
An axios-powered client wrapper for the Habitat API
We found that habitat-client-node demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.