Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
bKash API client for Browser & Node.js
bKash API docs: https://developer.bka.sh/v1.0.0-beta/reference
via npm:
$ npm install bkash --save
via yarn:
$ yarn add bkash
<script src="https://unpkg.com/bkash/dist/bkash.min.js"></script>
<script>
const bkash = new BKash(clientOptions)
</script>
const BKash = require('bkash')
const clientOptions = {
mode: 'sandbox', // sandbox/pay
type: 'checkout' // checkout/payments
}
const bkash = new BKash(clientOptions)
// https://developer.bka.sh/v1.0.0-beta/reference#querypaymentusingget
bkash.queryPayment({
paymentID: '42'
}).then(({ data, error, headers, meta }) => {
// data -> HTTP Status Code < 400
// error -> HTTP Status Code >= 400
}).catch(err => {
// HTTP Status Code >= 500
})
// required for token.grant and token.refresh methods
bkash.authenticate({
type: 'simple',
username: '...', // headers[`username`]
password: '...' // headers[`password`]
})
// required for all other methods
bkash.authenticate({
type: 'token',
token: '...', // headers[`authorization`]
appkey: '...' // headers[`x-app-key`]
})
Licensed under the MIT License. Check the LICENSE file for details.
[0.3.0] - 2018-12-22
v1.1.0-beta
FAQs
bKash API client for Browser & Node.js
We found that bkash 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.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.