mstdn-api
v0.1.2
Published
mastodon api library
Downloads
11
Readme
mstdn-api
UMD (including Node, Browser, and TypeScript!) Library for Mastodon API
Github repository, and
npm package are available.
Why mstdn-api?
You can use this library universally: Node, Browser(ES5), and TypeScript.
How to install
$ npm i -S mstdn-api
How to use
There are simple examples in ./example.
if you can use import-syntax, then:
import Mastodon from 'mstdn-api'
CDN
provided by rawgit.com
for development: mastodon.min.js
variable 'Mastodon' (window.Mastodon) is globally exported.
/* global Mastodon */
const mastodon = new Mastodon('YOUR_ACCESS_TOKEN')
See documents of class Mastodon
./dist/mastodon.js is generated by webpack (as bundler)
and ./dist/mastodon.min.js is generated by uglifyJS
Documents
Documents automatically generated by Typedoc2.
At first, see ./docs/classes/_mastodon_.mastodon.html
hosted by rawgit: documents of class Mastodon
Contributing
Feel free to contact me.
Welcome to blush my English and the code up.