Installation Methods
Superline Agent Detection can be integrated into your project using various methods, depending on your preferred package manager or project setup.
Package Managers
CDN / Script Tag
You can also include Superline Agent Detection directly in your HTML using a script tag:
When using the script tag method, the library is exposed as a global agentDetector object.
Importing the Library
After installation, you can import the library into your project in different ways:
ES Modules (Recommended)
CommonJS
Framework-specific Installation
React
For React applications, you can create a custom hook for easy integration:
Next Steps
Now that you have installed Superline Agent Detection, check out our Quick Start guide to learn how to use the library in your application, or explore the API Reference for detailed information about the available methods and options.