
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Small wrapper for the transportation card used in Ankara, AnkaraKart.
It is an API what do you expect.
~/project/$ npm install --save ankarakart
On your project:
const AnkaraKart = require("ankarakart");
const ankarakart = new AnkaraKart();
Returns a Promise containing cardObject
.
If canReturnRaw is set to true
, it will return a Promise containing cardObjectRaw
.
Returns a Promise containing cardUsageArray
.
If canReturnRaw is set to true
, it will return a Promise containing cardUsageArrayRaw
.
If the array is empty, that means the card is never used within the last 30 days.
You really don't need to use it manually, since the two above already uses them.
An object containing the card info.
16 digit string, containing the card number that was supplied to exectute the ankarakart.getCardInfo()
function.
Parsable date string, containing the last date that the card was used.
String, containing the credit that the card has.
String that can be 1, (maybe) 2 or 3.
unknown
String, containing the response message from the query server. This can be:
Contains cardUsageObject
s. Sorted by date. First element of the array is the latest event. If the card haven't been used in the last 30 days, this array will be empty.
16 digit string, containing the card number that was supplied to exectute the ankarakart.getCardUsage()
function.
Parsable date string, contains the date of the current card usage.
String, containing what happened on the current card usage.
This can be:
String, contains the car type of the current card usage.
This can be:
Empty
, only happens when you get on a private bus that accepts AnkaraKart.String, containing the bus code like xx-xxx
. Will be available if this data is not empty. lol
String, containing the bus line like xxx
. Will be available if carNumber
is not empty.
String, containing the credit that was spent on the current card usage.
String, containing the credit that will remain at the current card usage.
The raw object containing the card info.
Same as cardObject.cardNumber
.
Sort of cardObject.date
but formatted like DD.MM.YYYY HH:mm:ss
in GMT+3
Same as cardbObject.credit
.
Same as cardbObject.result
but not translated.
Same as cardbObject.message
but not translated.
The raw array containing cardUsageObjectRaw
s. Sorted by date. First element of the array is the latest event. If the card haven't been used in the last 30 days, this array will be empty.
Same as cardUsageObject.cardNumber
.
Sort of cardUsageObject.date
but formatted like DD/MM/YYYY HH:mm:ss
in GMT+3
Same as cardUsageObject.operation
but not translated.
Same as cardUsageObject.carType
but not translated.
Same as cardUsageObject.carNumber
.
Same as cardUsageObject.carLine
.
Same as cardUsageObject.creditSpent
.
Same as cardUsageObject.creditRemaining
.
Alright, I need to tell you this:
The code has lots of error-catchers, for easy debugging. If the static functions (anything under the non-exported class AnkaraKart.utils
) fail somehow, that is not good.
On invalid cards, the API will also return an error. This for redundancy and to support both async/await and general Promise usage.
FAQs
Small wrapper for the transportation card used in Ankara, AnkaraKart.
We found that ankarakart 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.