Skip to content
This repository was archived by the owner on May 28, 2026. It is now read-only.

Latest commit

 

History

10 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The CloudMC API JavaScript Client Library

The CloudMC API, now available with 75% less type safety!

Installation

¯\_(ツ)_/¯

Usage

import cmcFactory from 'cloudmc-services-js-client';

const cmc = cmcFactory('https://api.your.cloudmc/v1', { apiKey: 'your_api_key' }),
    sandbox = cmc('compute', 'sandbox');

sandbox.instances().list()
    .then(instances => Promise.all(instances
        .filter(i => i.state === 'Stopped')
        .map(i => sandbox.instances().start(i.id))));

Future Work

  • Inject service operations into entities using proxies
    • ie last line of example above becomes .map(i => i.start())

About

🎉 The CloudMC services API JavaScript client library.

Resources

Security policy

Stars

0 stars

Watchers

19 watching

Forks

Releases

Packages

Used by

Contributors

Languages