JSPM

  • Created
  • Published
  • Downloads 21331
  • Score
    100M100P100Q170803F
  • License MIT

Package Exports

  • @devcycle/bucketing-assembly-script
  • @devcycle/bucketing-assembly-script/build/bucketing-lib.release.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@devcycle/bucketing-assembly-script) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

DevCycle Bucketing - Assembly Script Lib

This package contains the shared logic used by DevCycle products to evaluate a user's information against a set of segmentation filters and determine eligibility for a given feature. It also makes decisions about which variation to serve a user in a multi-variate feature.

This Assembly Script version of the Bucketing library is designed to be used in a cross-platform manner as it builds a WebAssembly output that can be executed in various JavaScript Web / NodeJS environments and other server-side SDK environments. WebAssembly is a binary format that can be executed in a Web browser, NodeJS, or any other environment that supports it.

See the AssemblyScript Documentation for further details: https://www.assemblyscript.org/introduction.html

Usage

Building WebAssembly

yarn nx build shared-bucketing-as

See WebAssembly output in /build folder.

Testing

yarn nx test shared-bucketing-as