Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
ab-test
Advanced tools
Readme
AngularJS A/B Test Service and Directives for creating declarative and imperative A/B/n tests.
bower install ab-test
ab-test.js
script provided by this component into your app.ab.test
or ab.test.directive
as a module dependency to your app.<ab-test>
Directive<ab-variant>
DirectiveRunning an A/B test is great but it's even better if you make the tests "sticky" to the user. Meaning if someone
at your site gets variant B the next time they load the page or come back they get variant B again and not A. You can
select a given variant by calling the ab-select
method on the <ab-test>
directive. How you track users is up to you,
but since A/B tests aren't permanent a simple solution will most likely do very well. One way would be to use a cookie with
angular-uuid-service a light weight (214 byte) UUID generator service
for AngularJS that can be installed using bower
. See the demo for an example implementation.
You can pick one of these options:
node scripts/web-server.js
Then navigate your browser to http://localhost:<port>/demo/index.html
to see the app running in
your browser.
npm install
and bower install
to make sure you have all the development dependencies.bash scripts/test.sh
Requires a webserver;
npm install
and bower install
to make sure you have all the development dependencies.node ./scripts/web-server.js
or use your server that hosts the static files.bash scripts/e2e-test.sh
npm install
and bower install
to make sure you have all the development dependencies.npm test
to run both unit tests and end-to-end tests.npm run unit
to run all the unit tests.npm run gulp
to update the .min.js and .map files.Pull requests welcome :)
npm run gulp
to update the .min.js and .map files with any changes you have made to ab-test.js.(The MIT License)
Copyright (c) 2014 Daniel Lamb <daniellmb.com>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
FAQs
AngularJS A/B Test Service and Directives for creating declarative and imperative A/B/n tests.
The npm package ab-test receives a total of 7 weekly downloads. As such, ab-test popularity was classified as not popular.
We found that ab-test demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.