Gathering detailed insights and metrics for directus-brazilian-pix
Gathering detailed insights and metrics for directus-brazilian-pix
Gathering detailed insights and metrics for directus-brazilian-pix
Gathering detailed insights and metrics for directus-brazilian-pix
npm install directus-brazilian-pix
Typescript
Module System
Min. Node Version
Node Version
NPM Version
67.6
Supply Chain
98.6
Quality
83.4
Maintenance
100
Vulnerability
100
License
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
A comprehensive Directus extension bundle for handling Brazilian PIX keys with validation, formatting, and beautiful displays.
1npm install directus-brazilian-pix
Add the Brazilian PIX Key interface to any string field:
Option | Type | Default | Description |
---|---|---|---|
Auto-detect Type | Boolean | true | Automatically detect PIX key type based on input |
Allowed Types | Array | All types | Restrict which PIX key types are allowed |
Default Type | String | cpf | Default type when creating new items |
Validate Key | Boolean | true | Enable validation using official algorithms |
Required | Boolean | false | Make the field required |
Configure the display to show PIX keys with type badges:
Option | Type | Default | Description |
---|---|---|---|
Show Type Badge | Boolean | true | Display type badge (CPF, CNPJ, etc.) |
Format Key | Boolean | true | Apply formatting to displayed keys |
Hide Partial Key | Boolean | false | Mask part of the key for privacy |
Copy to Clipboard | Boolean | true | Enable copy functionality |
Show QR Code | Boolean | false | Show QR code generation button |
Type | Description | Format | Example |
---|---|---|---|
CPF | Individual taxpayer ID | XXX.XXX.XXX-XX | 123.456.789-01 |
CNPJ | Company taxpayer ID | XX.XXX.XXX/XXXX-XX | 12.345.678/0001-90 |
Phone | Mobile/landline number | (XX) XXXXX-XXXX | (11) 99999-9999 |
Email address | user@domain.com | usuario@email.com |
The extension uses Directus design tokens and follows the system theme automatically.
--blue
)--purple
)--green
)--orange
)PIX keys are stored as JSON strings containing both the key and its type:
1{ 2 "key": "12345678901", 3 "type": "cpf" 4}
This allows for:
1# Clone the repository 2git clone https://github.com/brunribeiro/directus-brazilian-pix.git 3 4# Install dependencies 5cd directus-brazilian-pix 6npm install 7 8# Build the extension 9npm run build 10 11# Link for development 12npm run link
1npm run build
1npm run validate
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
Found a bug or need help? Please open an issue on GitHub.
No vulnerabilities found.
No security vulnerabilities found.