finance
accountβ
Descriptionβ
Method that generate random account number
Parametersβ
| Name | Type | Description |
|---|---|---|
| length | <Number> | What length of account number will be generated. Default value is locale format |
Returnsβ
- <String>
Usageβ
Without passing parameters
- code
console.log(pure.finance.account());- result
'44941618'Describing that i want an account with 10 numbers
- code
console.log(pure.finance.account(10));- result
'5584477073'
accountNameβ
Descriptionβ
Method that generate random account name
Parametersβ
| Name | Type | Description |
|---|---|---|
| N/A | N/A | This method doesn't receive any parameters |
Returnsβ
- <String>
Usageβ
- Without passing parameters
- code
console.log(pure.finance.accountName());- result
'Money Market Account'
routingNumberβ
Descriptionβ
Method that generate random routing number
Parametersβ
| Name | Type | Description |
|---|---|---|
| N/A | N/A | This method doesn't receive any parameters |
Returnsβ
- <String>
Usageβ
- Without passing parameters
- code
console.log(pure.finance.routingNumber());- result
'484765369'
maskβ
Descriptionβ
Method that generate random mask number
Parametersβ
| Name | Type | Description |
|---|---|---|
| options | <Object> | You can pass parameters as this object properties |
| options.length | <Number> | Length of mask number. Default value is 4 |
| options.parens | <Boolean> | Format result with parentesis. Default value is false |
| options.ellipsis | <Boolean> | Format result with ellipsis. Default value is false |
Returnsβ
- <String>
Usageβ
Without passing parameters
- code
console.log(pure.finance.mask());- result
'5877'Describing that i want an mask number with length
6and formatted with ellipsis- code
console.log(pure.finance.mask({ length: 6, parens: false, ellipsis: true }));- result
'...296528'
amountβ
Descriptionβ
Method that generate a random amount value
Parametersβ
| Name | Type | Description |
|---|---|---|
| options | <Object> | You can pass parameters as this object properties |
| options.min | <Number> | Min number to be generated. Default value is 0 |
| options.max | <Number> | Max number to be generated. Default value is 1000 |
| options.dec | <Number> | Floating point precision to be used, if value is 0 then no floating point is generated. Default value is 2 |
| options.symbol | <String> | What symbol to use when generating number. Default value is empty |
Returnsβ
- <String>
Usageβ
Without passing parameters
- code
console.log(pure.finance.amount());- result
'618.48'Describing that i want an random amount between 5 and 10 and i wish the result with precision of 4 numbers after floating point and use the Azerbaijanian Manat currency symbol
ΠΌΠ°Π½- code
console.log(pure.finance.amount({ min: 5, max: 10, dec: 4, symbol: 'ΠΌΠ°Π½' }));- result
'ΠΌΠ°Π½6.2894'
transactionTypeβ
Descriptionβ
Method that generate random transaction type
Parametersβ
| Name | Type | Description |
|---|---|---|
| N/A | N/A | This method doesn't receive any parameters |
Returnsβ
- <String>
Usageβ
- Without passing parameters
- code
console.log(pure.finance.transactionType());- result
'invoice'
currencyCodeβ
Descriptionβ
Method that generate random currency code
Parametersβ
| Name | Type | Description |
|---|---|---|
| N/A | N/A | This method doesn't receive any parameters |
Returnsβ
- <String>
Usageβ
- Without passing parameters
- code
console.log(pure.finance.currencyCode());- result
'EGP'
currencyNameβ
Descriptionβ
Method that generate random currency name
Parametersβ
| Name | Type | Description |
|---|---|---|
| N/A | N/A | This method doesn't receive any parameters |
Returnsβ
- <String>
Usageβ
- Without passing parameters
- code
console.log(pure.finance.currencyName());- result
'US Dollar'
currencySymbolβ
Descriptionβ
Method that generate random currency symbol
Parametersβ
| Name | Type | Description |
|---|---|---|
| N/A | N/A | This method doesn't receive any parameters |
Returnsβ
- <String>
Usageβ
- Without passing parameters
- code
console.log(pure.finance.currencySymbol());- result
'β‘'
bitcoinAddressβ
Descriptionβ
Method that generate random bitcoin address
Parametersβ
| Name | Type | Description |
|---|---|---|
| N/A | N/A | This method doesn't receive any parameters |
Returnsβ
- <String>
Usageβ
- Without passing parameters
- code
console.log(pure.finance.bitcoinAddress());- result
'3pqJ9Qq1kN3trBQWt5oti5A2ULMxDZnT'
litecoinAddressβ
Descriptionβ
Method that generate random litecoin address
Parametersβ
| Name | Type | Description |
|---|---|---|
| N/A | N/A | This method doesn't receive any parameters |
Returnsβ
- <String>
Usageβ
- Without passing parameters
- code
console.log(pure.finance.litecoinAddress());- result
'3jiLj9MZrdXGkBPcmEfX4ka1Yrgm9WQ'
creditCardNumberβ
Descriptionβ
Method that generate random credit card number
Parametersβ
| Name | Type | Description |
|---|---|---|
| provider | <String> | Provider to generate from schema, it respects format declared in locale. Default value is empty |
Returnsβ
- <String>
Usageβ
Without passing parameters
- code
console.log(pure.finance.creditCardNumber());- result
'6767-4787-8355-5427-030'Describing that i want an credit card respecting
maestrotemplate- code
console.log(pure.finance.creditCardNumber('maestro'));- result
'5018-7171-7413-6719'
creditCardCVVβ
Descriptionβ
Method that generate random litecoin address
Parametersβ
| Name | Type | Description |
|---|---|---|
| N/A | N/A | This method doesn't receive any parameters |
Returnsβ
- <String>
Usageβ
- Without passing parameters
- code
console.log(pure.finance.creditCardCVV());- result
'841'
ethereumAddressβ
Descriptionβ
Method that generate random ethereum address
Parametersβ
| Name | Type | Description |
|---|---|---|
| N/A | N/A | This method doesn't receive any parameters |
Returnsβ
- <String>
Usageβ
- Without passing parameters
- code
console.log(pure.finance.ethereumAddress());- result
'0x520772c47f57b934de18977ad31ca3f2dbcf42a4'
ibanβ
Descriptionβ
Method that generate a random International Bank Account Number
Parametersβ
| Name | Type | Description |
|---|---|---|
| options | <Object> | You can pass parameters as this object properties |
| options.formatted | <Boolean> | Format output or not. Default value is 0 |
| options.country | <String> | What country will be used to generate, alpha-2 country code. Default value is random |
Returnsβ
- <String>
Usageβ
Without passing parameters
- code
console.log(pure.finance.iban());- result
'MC6661044700616M827O760L128'Describing that i want an random IBAN formatted from
Bosnia and Herzegovina- code
console.log(pure.finance.iban({ formatted: true, country: 'BA' }));- result
'BA81 9167 2671 3670 8538'
bicβ
Descriptionβ
Method that generate random Bank Identifier Code
Parametersβ
| Name | Type | Description |
|---|---|---|
| N/A | N/A | This method doesn't receive any parameters |
Returnsβ
- <String>
Usageβ
- Without passing parameters
- code
console.log(pure.finance.bic());- result
'KCJUNIM1'