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

cloudops/cloudmc-services-js-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors