/js

📝 Hop server side client library in JavaScript for Node.js

Primary LanguageTypeScriptMIT LicenseMIT

@onehop/js

Hop's JavaScript library. Requires Node.js 12+

Usage

Create a project token or personal access token.

import {Hop} from '@onehop/js';

const myToken = 'ptk_xxx';
const hop = new Hop(myToken);

// Example: Creating a project secret
hop.projects.secrets.create(
	'RANDOM_NUMBER',
	Math.floor(Math.random() * 100).toString(),
);