https://github.com/interconnectit/hadrian-js
https://github.com/interconnectit/hadrian-js
javascript nodejs
Last synced: 5 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/interconnectit/hadrian-js
- Owner: interconnectit
- License: mit
- Created: 2017-11-03T14:17:55.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-10-20T11:44:30.000Z (over 2 years ago)
- Last Synced: 2025-09-12T12:18:29.185Z (10 months ago)
- Topics: javascript, nodejs
- Language: JavaScript
- Size: 2.03 MB
- Stars: 0
- Watchers: 4
- Forks: 2
- Open Issues: 18
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Hadrian
[](https://travis-ci.org/interconnectit/hadrian-js)
[](http://standardjs.com)
This Library is used to send a payload to Hadrian and handle the evaluated response.
## Install
include via NPM
``` bash
$ npm install --save @interconnectit/hadrian
```
Pull via CDN
``` html
```
or you can pull a specific version
``` html
```
## Usage
``` js
hadrian()
.on({user: {subscription: 'gold'}}, function () {
$('.popup_subscription_gold').show()
})
.on({user: {subscription: 'silver'}}, function () {
$('.popup_subscription_silver').show()
})
...
.evaluate({
post_id: 1,
post_title: 'Lorem ipsum dolor sit amet',
...
})
```
## Compile
``` bash
$ npm run build
```
## Testing
``` bash
$ npm run test
```
## Contributing
Please see [Contributing Guide](CONTRIBUTING.md) and [Code of Conduct](CODE_OF_CONDUCT.md) for details.
## Security
If you discover any security related issues, please email support@interconnectit.com instead of using the issue tracker.
## Credits
- [interconnect/it](https://interconnectit.com)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.