hashflags

An unofficial library for Twitter hashflags


Keywords
hashflag, twitter, hashtag, emoji, nodejs, twitter-text, typescript
License
MIT
Install
npm install hashflags@1.1.1

Documentation

Hashflags

npm Build Status dependencies Status devDependencies Status Coverage Status Maintainability MIT license FOSSA Status semantic-release Commitizen friendly Dependabot badge Known Vulnerabilities

A library for using Twitter hashflags in the browser and Node.js

Installation

Using npm:

npm install hashflags

Examples

Importing and initialising Hashflags in TypeScript

import { Hashflags } from 'hashflags';

let hf: Hashflags;
Hashflags.FETCH().then((val: Map<string, string>) => {
    hf = new Hashflags(val);
    console.log(hf.activeHashflags);
});

Importing and initialising Hashflags in JavaScript

const Hashflags = require('hashflags').Hashflags;

let hf;
Hashflags.FETCH().then((val) => {
    hf = new Hashflags(val);
    console.log(hf.activeHashflags);
});

Credits

If you like this follow @Jamie_Magee on Twitter.

License

MIT