@onehop/js
TypeScript icon, indicating that this package has built-in type declarations

1.47.0 • Public • Published

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

Readme

Keywords

none

Package Sidebar

Install

npm i @onehop/js

Weekly Downloads

88

Version

1.47.0

License

MIT

Unpacked Size

1.37 MB

Total Files

27

Last publish

Collaborators

  • devlooskie
  • slayter
  • aabbccsmith
  • phineas