Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

hashflags

1.1.1 • Public • Published

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

install

npm i hashflags

Downloadsweekly downloads

40

version

1.1.1

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability