@onehop/js
v1.47.0
Published
Hop's JavaScript library. Requires Node.js 12+
Downloads
567
Keywords
Readme
@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(),
);