# traitify

> A small library providing access to traitify's api

Latest version **2.2.0** (published 2015-06-18) · 0 weekly downloads

## Install

```sh
npm install traitify
pnpm add traitify
yarn add traitify
bun add traitify
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.2.0 |
| Published | 2015-06-18 |
| First published | 2014-05-12 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Carson Wright |
| Maintainers | carsonnwright, efleming |
| Keywords | escape, unescape, html |

## Links

- npm: https://www.npmjs.com/package/traitify
- Repository: git@github.com:woofound/traitify-node
- Issues: http://github.com/woofound/traitify-node/issues
- npm.io page: https://npm.io/package/traitify

## Alternatives

- [@tsparticles/shape-image](https://npm.io/package/@tsparticles/shape-image.md) — 303.7K weekly downloads
- [@tsparticles/shape-line](https://npm.io/package/@tsparticles/shape-line.md) — 233.7K weekly downloads
- [stringify-attributes](https://npm.io/package/stringify-attributes.md) — 58.6K weekly downloads
- [mobile-drag-drop](https://npm.io/package/mobile-drag-drop.md) — 46.3K weekly downloads
- [@comunica/actor-rdf-parse-html](https://npm.io/package/@comunica/actor-rdf-parse-html.md) — 29.2K weekly downloads

## Recent versions

- 2.2.0 (latest) — 2015-06-18
- 2.1.0 — 2015-01-26
- 2.0.2 — 2014-12-03
- 2.0.0 — 2014-08-11
- 1.1.0 — 2014-05-13
- 1.0.0 — 2014-05-12
- 0.2.0 — 2014-05-12
- 0.1.0 — 2014-05-12

## README

Traitify
=========

A small library providing access to traitify's api

## Installation

```shell
  npm install -g traitify
```

## Usage

#### Config
```js
  var traitify = require('traitify');

	traitify.setHost("lvh.me");
	traitify.setVersion("v1");
	traitify.setSecretKey("fakeKey");
```

#### Create Assessment
```js
  var deckId = "Your Deck Id";
  traitify.createAssessment(deckId, function(assessment){
  	// Use assessment here.
  	console.log(assessment);
  });
```

#### Get Assessment
```js
  var assessmentId = "Your Assessment Id";

  traitify.getAssessment(assessmentId, function(assessment){
    // Use assessment here.
    console.log(assessment);
  });
```

#### Get Assessment Slides
```js
  var assessmentId = "Your Assessment Id";

  traitify.getSlides(assessmentId, function(assessment){
    // Use assessment here.
    console.log(assessment);
  });
```

#### Set Assessment Slide
```js
  var assessmentId = "Your Assessment Id";

  traitify.addSlide(assessmentId, {response: true, response_time: 1000}, function(assessment){
    // Use assessment here.
    console.log(assessment);
  });
```

#### Bulk Set Assessment Slides
```js
  var assessmentId = "Your Assessment Id";

  traitify.addSlides(assessmentId, [{id: "slide-uuid", "response":true, response_time: 1000}], function(assessment){
    // Use assessment here.
    console.log(assessment);
  })
```


#### Get Assessment Personality Types
```js
  var assessmentId = "Your Assessment Id";

  traitify.getPersonalityTypes(assessmentId, function(assessment){
    // Use assessment here.
    console.log(assessment);
  });
```

## Tests

```shell
   npm test
```

## Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style.
Add unit tests for any new or changed functionality. test your code.

## Release History

* 0.1.0 Initial release

---
_Source: https://npm.io/package/traitify · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
