cms-client

1.0.0 • Public • Published

Copyright 2017 Clause, Inc. All rights reserved. Use, modification, or distribution is prohibited in any form unless accompanied by a signed license from Clause, Inc.

cms-client

A simple client to the Clause Contract Management System. Bootstraps respositories from channels. See clause-cms for more details.

This package exports 2 classes, ApiClient and Repository.

ApiClient

This is an interface to the server at a channel level. Allows reading from, publishing to, and creation of channels.

Repository

This class's constructor takes a name and an ApiClient instance. If the repo doesn't exist yet, call .create() on it. Once you have a handle to an existing repo, you can call .fetch() on it to populate it with writes, then call .contents() to get the latest versions.

Dependents (0)

Package Sidebar

Install

npm i cms-client

Weekly Downloads

0

Version

1.0.0

License

ISC

Last publish

Collaborators

  • petrgazarov