
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
$ npm install rm-plugin
import rm from 'rm-plugin';
// get signed request
rm.getSignedRequest({
success: function({ signedRequest, platform }) {
console.log('signedRequest: ', signedRequest, ' platform: ', platform);
}
});
// get platform
const platform = rm.getPlatform();
// show toast message
rm.showToast({
type: 'success', // success, error (only for web portal)
title: 'hello'
})
// scan qrcode (only for terminal and merchant-app)
rm.scanCode({
success: function(resp) {
console.log('success: ', resp.code)
},
fail: function() {
console.log('failed')
},
complete: function() {
console.log('complete')
}
})
// show loading
rm.showLoading();
// hide loading
rm.hideLoading();
// show alert (only for terminal and merchant-app)
rm.showAlert({
type: 'success', // success, error
title: 'hello world'
})
// print receipt (only for terminal)
rm.printReceipt({
data: {} // object
})
// show navbar title (only for terminal and merchant-app)
rm.setBarTitle({
title: 'hello world'
})
// set storage by key and value
rm.setStorage({
key: 'test',
value: 'token',
})
// get storage by key name
rm.getStorage({
key: 'test',
success: function({ data }) {
console.log("content", data);
}
})
FAQs
##### Support for Merchant App, Terminal and Merchant Portal
The npm package rm-plugin receives a total of 16 weekly downloads. As such, rm-plugin popularity was classified as not popular.
We found that rm-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 3 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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.