1.0.14 • Published 7 years ago

@helpusersvote/logic v1.0.14

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

@helpusersvote/logic

JavaScript functions to check if a call-to-action should be rendered

Installation

First, add the module to your codebase:

npm install --save @helpusersvote/logic

Usage

In your app, import functions from the @helpusersvote/logic module:

import { shouldShowCTA } from '@helpusersvote/logic'

// Optional `regions` configuration, defaults to USA
const regions = [
  'city:San Francisco',
  'state:California',
  'country:USA'
]

// wherever you want to render the call-to-action
if (shouldShowCTA({ regions })) {
  // render a custom banner or use `@helpuservote/copy`
}

License

All modules are open-sourced under the MIT License

1.0.14

7 years ago

1.0.13

7 years ago

1.0.12

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago