![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
ExBanking is a minimal public facing interface of a banking application written in Typescript
This package requires Node.js v12+
.
To install, run npm install ex-banking
import ExBanking from 'ex-banking'
const exBanking = new ExBanking();
var ExBanking = require('ex-banking').default;
const exBanking = new ExBanking();
New users can be created by calling the createUser
function. This will also create an empty wallet for the user.
const response = exBanking.createUser('peeter')
// response = { success: true }
Money deposits can be made into a user's wallet for a given currency.
const response = exBanking.deposit('peeter', 200, 'EUR');
// response = { success: true, newBalance: 200 }
Withdrawals can be made on a user's wallet.
const response = exBanking.withdraw('peeter', 200, 'EUR');
// response = { success: true, newBalance: 0 }
const response = exBanking.getBalance('peeter', 'EUR');
// response = { success: true, balance: 500 }
A user can send money from their wallet to another user.
const response = exBanking.send('peeter', 'olga', 400, 'EUR');
// response = { success: true, fromUsernameBalance: 100, toUsernameBalance: 400 }
A typical error would be returned in the following format;
{
success: false,
code: ***,
message: 'An error occurred',
}
// Error codes
// 1 -> Wrong argument
// 2 -> User already exists
// 3 -> User does not exist
// 4 -> Not enough money
// 5 -> Sender does not exist
// 6 -> Receiver does not exist
npm run build
npm run test
FAQs
An example banking app public api written in typescript
We found that ex-banking 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.