Socket
Book a DemoInstallSign in
Socket

@adminide-stack/core

Package Overview
Dependencies
Maintainers
16
Versions
969
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@adminide-stack/core

AdminIDE core for higher packages to depend on

npmnpm
Version
12.0.4-alpha.137
Version published
Weekly downloads
1.8K
40.33%
Maintainers
16
Weekly downloads
 
Created
Source

To run tests

`npm link`
`npm link @xtermstack/xterm-core`
`yarn install`
`tsc`
`yarn test`

Usage Examples

Direct Resource URI Creation

The createDirectResourceUri function provides a streamlined way to create resource URIs without needing to first create a cdecode URI and then convert it:

import { createDirectResourceUri, ConfigCollectionName, ConfigFragmentName } from '@adminide-stack/core';

// Create a URI for a team resource
const teamUri = createDirectResourceUri(
    ConfigCollectionName.Teams,
    '60a3e1c5f30d3a001c9e8d5e', // team ID
    'my-organization', // organization name or ID
    {
        tenantId: 'default',
        fragment: ConfigFragmentName.Settings,
        useOrgNameParam: true, // use 'orgName' parameter (default: true)
    },
);

// Result: cde-resource://default/teams?_id=60a3e1c5f30d3a001c9e8d5e&orgName=my-organization#settings

// Create a URI for an organization resource (only needs ID)
const orgUri = createDirectResourceUri(
    ConfigCollectionName.Organizations,
    '60a3e1c5f30d3a001c9e8d5f', // organization ID
    null, // no organization parameter needed
    {
        tenantId: 'default',
        fragment: ConfigFragmentName.Settings,
    },
);

// Result: cde-resource://default/organizations?_id=60a3e1c5f30d3a001c9e8d5f#settings

This approach is more efficient than creating and converting cdecode URIs, and it ensures that the parameters are always in the correct order with _id first.

FAQs

Package last updated on 11 Sep 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