Skip to content
/ js Public

πŸ“ Hop server side client library in JavaScript for Node.js

License

Notifications You must be signed in to change notification settings

hopinc/js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

d8cd9b3 Β· Oct 27, 2022
Oct 27, 2022
Oct 4, 2022
Aug 30, 2022
Oct 4, 2022
Oct 3, 2022
Oct 27, 2022
Sep 21, 2022
Oct 3, 2022
Sep 9, 2022
May 17, 2022
Oct 4, 2022
Oct 26, 2022
May 19, 2022
Aug 20, 2022
Sep 21, 2022
Oct 27, 2022
Oct 4, 2022
Sep 2, 2022
Sep 21, 2022
Oct 16, 2022

Repository files navigation

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