1.0.8 • Published 4 months ago

fingerlockjs v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

Using the getAttributes Function

The getAttributes function is used to retrieve a set of attributes related to the user's browser or environment. This function returns a Promise that resolves to a BuiltinComponents object containing various attributes. Each attribute provides information about a specific aspect of the user's environment.

Usage

To use the getAttributes function in your project, follow these steps:

  1. Import the getAttributes function into your JavaScript/TypeScript code:

    import { getAttributes } from 'fingerlockjs';
    
    const attributesPromise = getAttributes();
    
     attributesPromise.then((attributes) => {
         // Handle the attributes here
         console.log(attributes);
     }).catch((error) => {
         // Handle any errors that occur during attribute retrieval
         console.error(error);
     });
     ```
    Response Payload: