system
fileName​
Description​
Method that generate random file name with extension
Parameters​
| Name | Type | Description | 
|---|---|---|
| ext | <String> | You can define what extension to use. If the parameter passed isn't valid it will randomize from internal list | 
Returns​
- <String>
Usage​
- Without passing parameters - code
 - console.log(pure.system.fileName());- result
 - 'computer-tools.lua'
- Describing that i want an file name using - jpegas extension- code
 - console.log(pure.system.fileName('jpeg'));- result
 - 'com-facilitator.jpeg'
commonFileName​
Description​
Method that generates random common file name with extension
Parameters​
| Name | Type | Description | 
|---|---|---|
| ext | <String> | You can define what extension to use. If the parameter passed isn't valid it will randomize from internal list | 
Returns​
- <String>
Usage​
- Without passing parameters - code
 - console.log(pure.system.commonFileName());- result
 - 'initiative-networks-research.wav'
- Describing that i want an file name using - jpegas extension- code
 - console.log(pure.system.commonFileName('jpeg'));- result
 - 'fault-tolerant.jpeg'
mimeType​
Description​
Method that generate random internet media 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.system.mimeType());- result
 'application/vnd.paos.xml'
commonFileType​
Description​
Method that generate random common file 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.system.commonFileType());- result
 'video'
commonFileExt​
Description​
Method that generate random common file extension
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.system.commonFileExt());- result
 'png'
fileType​
Description​
Method that generate random file 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.system.fileType());- result
 'x-shader'
fileExt​
Description​
Method that generate random file extension
Parameters​
| Name | Type | Description | 
|---|---|---|
| mimeType | <String> | Define what internet media type to use. If the string passed isn't valid it will randomize from internal list | 
Returns​
- <String>
Usage​
- Without passing parameters - code
 - console.log(pure.system.fileExt());- result
 - 'cdmic'
- Describing that i want an file extension using - video/x-msvideoas mime-type- code
 - console.log(pure.system.fileExt('video/x-msvideo'));- result
 - 'avi'
directoryPath​
Description​
Method that generate random fake directory path
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.system.directoryPath());- result
 '/Applications'
filePath​
Description​
Method that generate random fake file path
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.system.filePath());- result
 '/opt/include/card.xap'
semver​
Description​
Method that generate random semantic versioning 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.system.semver());- result
 '9.0.2'