New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More

@imtbl/config

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
t

@imtbl/config

Config for Immutable SDK

2.1.6-alpha.7
Version published
Weekly downloads
3.3K
7%
Maintainers
0
Weekly downloads
 
Created
Issues
92

About

The Config package exposes a configuration class and some utilities to create a configuration object. This object contains information used for the SDK setup by consumers. It ensures that all modules and packages within the SDK can access the necessary configuration settings in a consistent and reliable manner, as well as providing customers with a simple way to configure the SDK for their specific environment.

Table of Contents

Installation

Individual Package Installation

To install this package, run the following command:

npm add @imtbl/config
# or
pnpm add @imtbl/config
# or
yarn add @imtbl/config

SDK Installation

This package is also included within the @imtbl/sdk NPM package and can be re-exported directly from there.

Conditional Exports

If your environment supports conditional exports, you can import the contents of this package directly from the @imtbl/sdk package using the @imtbl/sdk/config import path like so:

import { Environment } from '@imtbl/sdk/config';

This is the recommended way of consuming this package, as it allows for better tree-shaking and smaller bundle sizes.

Direct Imports

If your environment does not support conditional exports, you will need to import the contents of this package directly from the @imtbl/sdk package like so:

import { config } from '@imtbl/sdk';

const { Environment } = config;

However this method will result in a larger bundle size as the entire @imtbl/config package will be included in your bundle.

FAQs

Package last updated on 14 Mar 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts