npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@repobit/dex-launch

v3.0.0

Published

Client for Adobe Launch

Downloads

1,725

Readme

@repobit/dex-launch

Adobe Launch Loader

Adobe Launch Loader is a lightweight utility that simplifies the process of dynamically loading Adobe Launch scripts based on a specified environment. It leverages constants and script-loading functions from the dex-utils package to construct the correct URL for the Adobe Launch script and then load it asynchronously into your application.


Overview

The Adobe Launch Loader provides a single abstract class with a static method to load the Adobe Launch script. By specifying an environment (such as 'prod', 'stage', or 'dev'), the loader builds the script URL using predefined constants and loads the script into the document. This enables seamless integration with Adobe Launch without hardcoding script URLs in your code.


Key Features

  • Dynamic Script Loading:
    Automatically builds and loads the Adobe Launch script URL based on the given environment.

  • Environment Flexibility:
    Supports multiple environments through a mapping of environment keys to script paths.

  • Asynchronous Operation:
    Uses asynchronous loading, ensuring that your application can continue operating while the script is being loaded.

  • Easy Integration:
    Requires minimal configuration and integrates seamlessly with your existing project using the dex-utils package.


Installation

npm install @repobit/dex-launch

Launch Class

Type: Abstract Class

Static Methods:

  • load(environment: string): Promise

    • Description: Constructs the Adobe Launch script URL based on the provided environment and asynchronously loads the script using the loadScript utility from dex-utils.
    • Parameters: environment: string – The current environment (e.g., 'prod', 'stage', or 'dev').
    • Return Type: Returns a Promise<void> which resolves when the script has been successfully loaded.

Use Case:

Call this method during your application initialization to dynamically load the Adobe Launch script appropriate for your environment. This approach helps keep your configuration dynamic and decoupled from your codebase.

Usage Example

Below is an example of how to use the Adobe Launch Loader in your application:

import Launch from '@repobit/dex-launch';

// Load the Adobe Launch script for the production environment
await Launch.load('prod');

// After loading, the Adobe Launch script is available for use in your application.

If one wishes to use both Launch and Target in the same project, I recommend using a structure similar to the one below:

import Launch from '@repobit/dex-launch';
import Target from '@repobit/dex-target';

const target = new Target();

try {
  await Launch.load('prod');
} catch (e) {
  Target.abort();
}

Since Target is dependent on Launch, it is better to Abort all Target operations when we are sure that Launch will not load.