Skip to content

Alheimsins/b5-at-a-glance

Repository files navigation

js-standard-style

b5-at-a-glance

Short description of your big five score

usage

Pass an object containing language and scores formatted like the one generated from bigfive-calculate-score and get a quick summary

const summary = require('@alheimsins/b5-at-a-glance')
const data = {
  language: 'no',
  scores: {
    A: {
      score: 6,
      count: 2,
      result: 'neutral',
      facet: {
        '1': {
          score: 6,
          count: 2,
          result: 'neutral'
        }
      }
    },
    E: {
      score: 6,
      count: 2,
      result: 'neutral',
      facet: {
        '1': {
          score: 3,
          count: 1,
          result: 'neutral'
        },
        '2': {
          score: 3,
          count: 1,
          result: "neutral"
        }
      }
    }
  }
}

console.log(summary(data))

Related

License

MIT

About

Created with ❤ for Alheimsins

About

Short description of your big five score

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published