Update README.md
This commit is contained in:
125
README.md
125
README.md
@@ -1,5 +1,13 @@
|
|||||||
# Real Random US Tax-Free State Address Generator
|
# Real Random US Tax-Free State Address Generator
|
||||||
|
|
||||||
|
[](LICENSE)
|
||||||
|
[]()
|
||||||
|
[]()
|
||||||
|
[]()
|
||||||
|
[]()
|
||||||
|
[]()
|
||||||
|
[]()
|
||||||
|
|
||||||
> This repository contains the open-source **frontend core engine** of MockAddress, for generating authentic-format test addresses and MAC address data across multiple countries/regions.
|
> This repository contains the open-source **frontend core engine** of MockAddress, for generating authentic-format test addresses and MAC address data across multiple countries/regions.
|
||||||
> Full production site: <https://mockaddress.com/>
|
> Full production site: <https://mockaddress.com/>
|
||||||
|
|
||||||
@@ -55,21 +63,24 @@ All core logic runs entirely in the browser and can be deployed to any static ho
|
|||||||
|
|
||||||
## Repository Structure
|
## Repository Structure
|
||||||
|
|
||||||
```text
|
```
|
||||||
src/
|
mockaddress-core/
|
||||||
js/
|
├── src/
|
||||||
address-generator.js # Address/identity/credit card generation engine
|
│ ├── js/
|
||||||
mac-generator.js # MAC generation and vendor lookup
|
│ │ ├── address-generator.js # Address/identity/credit card generation engine
|
||||||
storage.js # Storage, rate limiting, export utilities
|
│ │ ├── mac-generator.js # MAC generation and vendor lookup
|
||||||
language-switcher.js # Multi-language routing and internal link rewriting
|
│ │ ├── storage.js # Storage, rate limiting, export utilities
|
||||||
utils.js # General utility functions
|
│ │ ├── language-switcher.js # Multi-language routing and internal link rewriting
|
||||||
css/
|
│ │ ├── utils.js # General utility functions
|
||||||
main.css # Universal dark theme and base UI component styles
|
│ │ └── config.js # Configuration module
|
||||||
|
│ └── css/
|
||||||
README.md # Project documentation (this file)
|
│ └── main.css # Universal dark theme and base UI component styles
|
||||||
LICENSE # Open source license (MIT recommended)
|
├── README.md # Project documentation (this file)
|
||||||
CONTRIBUTING.md # Contribution guidelines (optional)
|
├── README_EN.md # English documentation
|
||||||
ROADMAP.md # Roadmap (optional)
|
├── LICENSE # Open source license (MIT)
|
||||||
|
├── CONTRIBUTING.md # Contribution guidelines
|
||||||
|
├── ROADMAP.md # Roadmap
|
||||||
|
└── .gitignore # Git ignore rules
|
||||||
```
|
```
|
||||||
|
|
||||||
> **Reminder**: **This repository does not include production site HTML files or large-scale data files `data/*.json`**.
|
> **Reminder**: **This repository does not include production site HTML files or large-scale data files `data/*.json`**.
|
||||||
@@ -135,6 +146,55 @@ ROADMAP.md # Roadmap (optional)
|
|||||||
- `generateIdentityInfo(address)` - Identity information
|
- `generateIdentityInfo(address)` - Identity information
|
||||||
- `generateCreditCardInfo()` - Credit card information (testing only)
|
- `generateCreditCardInfo()` - Credit card information (testing only)
|
||||||
|
|
||||||
|
### Code Examples
|
||||||
|
|
||||||
|
**Generate US Tax-Free State Address:**
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
import { generateTaxFreeAddress } from './src/js/address-generator.js';
|
||||||
|
|
||||||
|
// Generate address for Oregon (tax-free state)
|
||||||
|
const address = await generateTaxFreeAddress('OR');
|
||||||
|
console.log(address);
|
||||||
|
// Output: { street: "123 Main St", city: "Portland", state: "OR", zip: "97201", ... }
|
||||||
|
```
|
||||||
|
|
||||||
|
**Generate Address with Identity Info:**
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
import { generateUSAddress, generateIdentityInfo } from './src/js/address-generator.js';
|
||||||
|
|
||||||
|
const address = await generateUSAddress('CA');
|
||||||
|
const identity = generateIdentityInfo(address);
|
||||||
|
console.log({ ...address, ...identity });
|
||||||
|
// Output includes: name, gender, dateOfBirth, occupation, ssn, etc.
|
||||||
|
```
|
||||||
|
|
||||||
|
**Generate MAC Address:**
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
import { generateMACAddress, lookupVendor } from './src/js/mac-generator.js';
|
||||||
|
|
||||||
|
const mac = generateMACAddress('colon'); // 'aa:bb:cc:dd:ee:ff'
|
||||||
|
const vendor = await lookupVendor(mac);
|
||||||
|
console.log(vendor); // Vendor information from OUI database
|
||||||
|
```
|
||||||
|
|
||||||
|
**Export to CSV/JSON:**
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
import { exportToCSV, exportToJSON, getAllSavedAddresses } from './src/js/storage.js';
|
||||||
|
|
||||||
|
// After saving some addresses
|
||||||
|
const addresses = getAllSavedAddresses();
|
||||||
|
const csv = exportToCSV(addresses);
|
||||||
|
const json = exportToJSON(addresses);
|
||||||
|
|
||||||
|
// Download or use the exported data
|
||||||
|
console.log(csv);
|
||||||
|
console.log(json);
|
||||||
|
```
|
||||||
|
|
||||||
For detailed usage instructions, see [`使用说明.md`](./使用说明.md) (Usage Guide in Chinese).
|
For detailed usage instructions, see [`使用说明.md`](./使用说明.md) (Usage Guide in Chinese).
|
||||||
|
|
||||||
You can also refer to our production site <https://mockaddress.com/> to see real-world usage scenarios and UI design, then customize as needed in your own project.
|
You can also refer to our production site <https://mockaddress.com/> to see real-world usage scenarios and UI design, then customize as needed in your own project.
|
||||||
@@ -263,15 +323,36 @@ If you have any questions or suggestions during use, welcome to participate via
|
|||||||
|
|
||||||
## GitHub Topics
|
## GitHub Topics
|
||||||
|
|
||||||
**Recommended topics for this repository:**
|
**Recommended topics for this repository (copy and paste into GitHub repository settings):**
|
||||||
|
|
||||||
|
### Core Functionality Tags
|
||||||
```
|
```
|
||||||
javascript, frontend, address-generator, tax-free-states, global-addresses,
|
address-generator, random-address, fake-address, tax-free-state, real-address,
|
||||||
multi-language, test-data, devtools, qa, testing, mock-data,
|
random-us-address, random-address-generator-for-testing, us-dummy-address-generator
|
||||||
us-address, canada-address, hong-kong-address, mac-address,
|
```
|
||||||
authentic-address, postal-standards, csv-export, json-export,
|
|
||||||
browser-only, privacy-first, openstreetmap, address-validation,
|
### Regional Address Tags
|
||||||
form-testing, automation, ci-cd, static-site, no-backend
|
```
|
||||||
|
hong-kong-address-random, random-address-in-hong-kong, hong-kong-random-address,
|
||||||
|
japan-address-generator-tokyo, random-japan-address, taiwan-address-format,
|
||||||
|
taiwan-address-sample, canada-address, uk-address, india-address, singapore-address
|
||||||
|
```
|
||||||
|
|
||||||
|
### Technical Stack Tags
|
||||||
|
```
|
||||||
|
javascript, frontend, browser-only, no-backend, static-site,
|
||||||
|
privacy-first, openstreetmap, address-validation, postal-standards
|
||||||
|
```
|
||||||
|
|
||||||
|
### Use Case Tags
|
||||||
|
```
|
||||||
|
test-data, devtools, qa, testing, mock-data, form-testing,
|
||||||
|
automation, ci-cd, csv-export, json-export, mac-address
|
||||||
|
```
|
||||||
|
|
||||||
|
**Quick Copy (All Topics):**
|
||||||
|
```
|
||||||
|
address-generator, random-address, fake-address, tax-free-state, real-address, random-us-address, random-address-generator-for-testing, us-dummy-address-generator, hong-kong-address-random, random-address-in-hong-kong, hong-kong-random-address, japan-address-generator-tokyo, random-japan-address, taiwan-address-format, taiwan-address-sample, javascript, frontend, test-data, devtools, qa, testing, mock-data, browser-only, privacy-first, csv-export, json-export, mac-address
|
||||||
```
|
```
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
Reference in New Issue
Block a user