1.5.0 • Published 5 years ago

@lagunehq/core v1.5.0

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
5 years ago

@lagunehq/core

npm

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

What is the deference between other Mastodon packages?

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

Installation

npm i @lagunehq/core --save

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

License

AGPLv3

1.5.0

5 years ago

1.4.0

5 years ago

1.3.10

5 years ago

1.3.9

5 years ago

1.3.8

5 years ago

1.3.8-rc1

6 years ago

1.3.7

6 years ago

1.3.7-rc6

6 years ago

1.3.7-rc5

6 years ago

1.3.7-rc4

6 years ago

1.3.7-rc3

6 years ago

1.3.7-rc2

6 years ago

1.3.7-rc1

6 years ago

1.3.6

6 years ago

1.3.5

6 years ago

1.3.4

6 years ago

1.3.3

6 years ago

1.3.2

6 years ago

1.3.1

6 years ago

1.3.0

6 years ago

1.2.0

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.1

6 years ago