Giter Club home page Giter Club logo

nps-widget's Introduction

Net Promoter Score widget Build Status

A lightweight web widget for gathering Net Promoter Score surveys.

The widget was created for SatisMeter Customer loyalty analytics SaaS app.

NPS widget

Install using browserify

npm install satismeter/nps-widget

Use

var View = require('nps-widget');
var view = new View();
view.on('dismiss', function() { /* Handle dismiss */ });
view.on('submit', function() {
    console.log(view.rating, view.feedback);
});
view.show();

Develop

To run local server and watch for changes run:

make

Browser support

Supports all modern browsers and Internet explorer 9+.

Sauce Test Status

Testing

make test

Copyright

Net Promoter, NPS, and Net Promoter Score are trademarks of Satmetrix Systems, Inc., Bain & Company, Inc., and Fred Reichheld.

nps-widget's People

Contributors

jsedlacek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nps-widget's Issues

docs on how to instantiate with a given language

Hey there!

A mutual customer of ours would like to create the widget with a custom language via Segment.

just want to confirm, the option "language" will cause the widget to load w/ that language, correct?

window.satismeter({
    token: this.options.token,
    user: user,
    language: <lang>
  });

if so, we could tweak the segment integration to proxy identify calls' context.locale parameter. since our spec requires standard locale strings there, it would be nice if we could have those resolve automatically, or use something like github.com/segmentio/locale-string to resolve to the full language names. if not, we can still make it work :)

Publish on `npm` properly?

npm i -D satismeter/nps-widget

yeilds

"nps-widget": "satismeter/nps-widget", in package.json

Expected behavior is be:
"nps-widget": "^x.y.z",

I really fail to understand why you aren't using the standard npm approach, which makes it impossible to pin a version.

Same with https://github.com/satismeter/satismeter-js

Can you please publish under npm-widget or satismeter-npm-widget (the latter being the standard if you want to group deps for a single namespace)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.