@whizzes/linx
TypeScript icon, indicating that this package has built-in type declarations

0.1.8-beta • Public • Published

Linx

API Client for Linx

Still under early development. The underlying server is available on whizzes/linx.

Getting Started

npm install @whizzes/linx

Usage

import { Client } from '@whizzes/linx/browser';

import type { Linx } from '@whizzes/linx/browser';

// The URL where Linx is hosted
const linxServer = 'http://localhost:3000';

// Create a Client instance
const linx = new Client(linxServer);

let url = '';
let error = null;
let link: Linx.Link | null = null;

async function createLink(): Promise<void> {
  try {
    link = await linx.new(url);
  } catch (err) {
    error = err.toString();
  }
}

Contributions

Every contribution to this project is welcome, feel free to open PRs and issues if you find fit for any.

License

Licensed under the MIT license. Refer to the LICENSE file.

Readme

Keywords

Package Sidebar

Install

npm i @whizzes/linx

Weekly Downloads

1

Version

0.1.8-beta

License

MIT

Unpacked Size

10.4 kB

Total Files

8

Last publish

Collaborators

  • estebanborai