Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@agderposten/organization-functions

Package Overview
Dependencies
Maintainers
3
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agderposten/organization-functions

Easy access to agm organization functions. You probably need `@babel/polyfill` for this to work.

latest
Source
npmnpm
Version
2.0.1
Version published
Maintainers
3
Created
Source

Organization functions

Easy access to agm organization functions. You probably need @babel/polyfill for this to work.

Fetch organization information by environment ID

import {fetchOrganizationByEnvironmentId} from '@agderposten/organization-functions';

fetchOrganizationByEnvironmentId('4d63d444-d418-4981-8c0e-f5d26ea334db')
    .then((organization) => {
        console.log(organization.name); // > Agderposten
    });

Fetch organization information by hostname

import {fetchEnvironmentByHostname} from '@agderposten/organization-functions';

fetchEnvironmentByHostname('agderposten.no')
    .then((organization) => {
        console.log(organization.name); // > Agderposten
    });

Fetch organization information by title code

import {fetchEnvironmentByTitleCode} from '@agderposten/organization-functions';

fetchEnvironmentByTitleCode('ag')
    .then((organization) => {
        console.log(organization.name); // > Agderposten
    });

FAQs

Package last updated on 09 Nov 2021

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