1.5.0 • Published 6 years ago

@lagunehq/core v1.5.0

Weekly downloads
-
License
AGPL-3.0
Repository
github
Last release
6 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

6 years ago

1.4.0

6 years ago

1.3.10

7 years ago

1.3.9

7 years ago

1.3.8

7 years ago

1.3.8-rc1

7 years ago

1.3.7

7 years ago

1.3.7-rc6

7 years ago

1.3.7-rc5

7 years ago

1.3.7-rc4

7 years ago

1.3.7-rc3

7 years ago

1.3.7-rc2

7 years ago

1.3.7-rc1

7 years ago

1.3.6

7 years ago

1.3.5

7 years ago

1.3.4

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

7 years ago

1.3.0

7 years ago

1.2.0

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.1

7 years ago