šŸš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more →
Socket
Sign inDemoInstall
Socket

@types/cfenv

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/cfenv

TypeScript definitions for cfenv

1.2.4
ts4.5
ts4.6
ts4.7
ts4.8
ts4.9
ts5.0
ts5.1
ts5.2
ts5.3
ts5.4
ts5.5
ts5.6
ts5.7
ts5.8
ts5.9
latest
Source
npm
Version published
Weekly downloads
4.7K
12.39%
Maintainers
1
Weekly downloads
Ā 
Created
Source

Installation

npm install --save @types/cfenv

Summary

This package contains type definitions for cfenv (https://github.com/cloudfoundry-community/node-cfenv).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/cfenv.

index.d.ts

export interface Service {
    label: string;
    name: string;
    plan: string;
    tags: string[];
    credentials: Record<string, any>;
}

export interface ApplicationConfig {
    name?: string;

    [rest: string]: any;
}

export interface ServicesConfig {
    [name: string]: Array<{
        credentials?: Record<string, any>;
        name?: string;

        [rest: string]: any;
    }>;
}

export interface AppEnv {
    app: Record<string, any>;
    isLocal: boolean;
    name: string;
    port: number;
    bind: string;
    urls: string[];
    url: string;
    services: Record<string, any>;

    toJSON: () => string;
    getServices: () => { [key: string]: Service };
    getService: (spec: string | RegExp) => Service | null;
    getServiceURL: (
        spec: string | RegExp,
        replacements?: Record<string, any>,
    ) => string | null;
    getServiceCreds: (spec: string | RegExp) => Record<string, any> | null;
}

export interface GetAppEnvOptions {
    name?: string;
    protocol?: string;
    vcap?: {
        application?: ApplicationConfig;
        services?: ServicesConfig;
    };
    vcapFile?: string;
}

export function getAppEnv(options?: GetAppEnvOptions): AppEnv;

Additional Details

  • Last updated: Mon, 06 Nov 2023 22:41:05 GMT
  • Dependencies: none

Credits

These definitions were written by Jordan Adams.

FAQs

Package last updated on 07 Nov 2023

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