Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 404 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 404 Bytes

@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(),
);