#️⃣ A library for using Twitter hashflags in the browser and Node.js
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.github
.vscode
__tests__
src
.editorconfig
.gitignore
.npmignore
.travis.yml
LICENSE
README.md
commitlint.config.js
package-lock.json
package.json
tsconfig.json
tslint.json
yarn.lock

README.md

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