# Node.js SDK

## Node.js SDK

Official Node.js SDK for AllStack error tracking and monitoring by Techsea. This package provides seamless integration for error tracking and monitoring in your Node.js applications.

### Installation

Install the package using npm or yarn:

```bash
npm install @techsea/allstack-node
```

### Usage

Initialize AllStack and capture errors:

```javascript
const AllStack = require("@techsea/allstack-node");

const allstack = new AllStack({
    environment: "production",
    tags: ["your-tags"],
    apiKey: "your_api_key",
});

try {
    throw new Error("This is a test error .");
} catch (error) {
    allstack.captureException(error);
    console.error("Captured error:", error.message);
}
```

### Configuration Options

The AllStack constructor accepts the following options:

* `environment` - The environment name (e.g., "production", "staging", "development")
* `tags` - Array of tags to categorize your errors
* `apiKey` - Your AllStack API key
