Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
is-aus-postcode
Advanced tools
Validate an Australian postcode.
yarn add is-aus-postcode
npm i is-aus-postcode
var isAusPostcode = require('./index')
isAusPostcode("2300") // true
isAusPostcode("0100") // false
isAusPostcode("0230") // true
State | Codes |
---|---|
New South Wales | 1000–2599, 2620–2899, 2921–2999 |
Victoria | 3000–3999, 8000–8999 |
Queensland | 4000–4999, 9000–9999 |
South Australia | 5000–5999 |
Western Australia | 6000–6999 |
Tasmania | 7000–7999 |
Australian Capital Territory | 0200–0299, 2600–2619, 2900–2920 |
Northern Territory | 0800–0999 |
Reference taken from the Australia Post - Standard Postcode File (PC001).
FAQs
Validate an Australian postcode
The npm package is-aus-postcode receives a total of 0 weekly downloads. As such, is-aus-postcode popularity was classified as not popular.
We found that is-aus-postcode 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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.