Socket
Socket
Sign inDemoInstall

@lagunehq/core

Package Overview
Dependencies
4
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

@lagunehq/core


Version published
Maintainers
1
Install size
2.02 MB
Created

Readme

Source

@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

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

Keywords

FAQs

Last updated on 18 Feb 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc