A library for using Twitter hashflags in the browser and Node.js
Using npm:
npm install hashflagsImporting 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);
});If you like this follow @Jamie_Magee on Twitter.
MIT