This package has been deprecated

Author message:

Thanks for using @lagunehq/core! This package has been renamed to `masto` for discoverability with Mastodon 2.8.0 support. It contains some breaking changes so please check the release note on GitHub to migrate🍻

@lagunehq/core
TypeScript icon, indicating that this package has built-in type declarations

1.5.0 • Public • Published

@lagunehq/core

npm

Most powerful Mastodon API client for TypeScript/JavaScript/Node.js/Browser

What is the deference between other Mastodon packages?

  • [x] Compatible with both of browser and Node.js
  • [x] Each API has each function, you don't need to type annoying API URLs
  • [x] Static typing with TypeScript
  • [x] Georgeous hovering menu provided by TSDoc
  • [x] Iterable timeline

Installation

npm i @lagunehq/core --save

Become a patron

Using the API

Here's a simple example which creates a new status:

import Mastodon from '@lagunehq/core';

const client = new Mastodon({
  url:          'https://mastodon.social',
  streamingUrl: 'wss://mastodon.social',
  token:        'my token', // Optional
});

client.createStatus('Toot from TypeScript').then((newStatus) => {
  console.log(newStatus);
});

All of available methods/interfaces are described in the documentation

Maintainers

Neetshin

License

AGPLv3

Readme

Keywords

Package Sidebar

Install

npm i @lagunehq/core

Weekly Downloads

0

Version

1.5.0

License

AGPL-3.0

Unpacked Size

186 kB

Total Files

66

Last publish

Collaborators

  • neetshin