npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

featureflow-ng

v1.3.3

Published

Featureflow Angular Provider

Readme

featureflow-ng

Featureflow NG Angular 1 Provider

Get your Featureflow account at featureflow.io

Get Started

The easiest way to get started is to follow the Featureflow quick start guides

Change Log

Please see CHANGELOG.

Installation

Using NPM

$ npm install --save featureflow-ng

Using bower

$ bower install featureflow-ng

Usage

Adding Featureflow

Webpack

If you are using webpack, you can require the code using

var FeatureflowProvider = require('featureflow-ng');

or using es6 syntax

import FeatureflowProvider from 'featureflow-ng';
Bower

Install both the featureflow-client and featureflow-ng components.

$ bower install featureflow-client
$ bower install featureflow-ng

Include the following script in HTML file. This will expose the global variable FeatureflowProvider. You must also include the bower featureflow-client script.

<script crossorigin="anonymous" src="bower_components/featureflow-client/dist/featureflow.min.js"></script>
<script crossorigin="anonymous" src="bower_components/featureflow-ng/dist/featureflow-ng.min.js"></script>

Note: It is recommended to use build tools to manage your bower dependencies. Please see the bower website for more details.

CDN

Include the following script in HTML file. This will expose the global variable Featureflow

<script crossorigin="anonymous" src="https://cdn.featureflow.io/featureflow.js"></script>
<script crossorigin="anonymous" src="https://cdn.featureflow.io/featureflow-ng.js"></script>

This plugin will expose the entire featureflow client interface.

Getting Started

Add the ng-featureflow to your app.module and initialize it in your config.

var FF_API_KEY = '<js-featureflow-key>';

angular.module('sampleApp', ['ng-featureflow'])
.config(['featureflowProvider', function(featureflowProvider) {
		featureflowProvider.init(FF_API_KEY, {});
}]);

Access the featureflow client instance using the following code in your controller.

angular.module('sampleApp')
.controller('ExampleController', function(featureflow) {
		//user featureflow like you would the normal client
		if (featureflow.evaluate('my-key').isOn()){
		  //do something
		}
});

Please see the featureflow-javascript-sdk for further details about how to use the featureflow instance.

Roadmap

  • [x] Write documentation
  • [x] Release to npm
  • [x] Release to bower
  • [x] Automate release to bower on npm prepublish
  • [ ] Automate release script to cdn on npm prepublish

License

Apache-2.0