Socket
Book a DemoInstallSign in
Socket

@adminide-stack/core

Package Overview
Dependencies
Maintainers
16
Versions
957
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

12.0.4-alpha.124
latest
npmnpm
Version published
Weekly downloads
1.1K
-24.76%
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 07 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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.