1.1.1 • Published 7 years ago

hashflags v1.1.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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

1.1.1

7 years ago

1.1.0

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago