2.0.1 • Published 3 years ago

@agderposten/organization-functions v2.0.1

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
3 years ago

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
    });
2.0.1

3 years ago

2.0.0

3 years ago

1.2.8

5 years ago

1.2.7

5 years ago

1.2.6

5 years ago

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.0

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago