@alheimsins/b5-costa-mccrae-300-ipip-neo-pi-r
Advanced tools
Comparing version 3.1.0 to 3.2.0
12
index.js
const { knuthShuffle } = require('knuth-shuffle') | ||
const languages = require('./data/languages.json') | ||
function languageSort (a, b) { | ||
if (a.text < b.text) { | ||
return -1 | ||
} | ||
if (a.text > b.text) { | ||
return 1 | ||
} | ||
return 0 | ||
} | ||
languages.sort(languageSort) | ||
module.exports.getItems = (lang = 'en', shuffle = false) => { | ||
@@ -5,0 +17,0 @@ let choices, questions |
{ | ||
"name": "@alheimsins/b5-costa-mccrae-300-ipip-neo-pi-r", | ||
"description": "Module for returning Big Five Costa and McCrae's 300 IPIP-NEO-PI-R items", | ||
"version": "3.1.0", | ||
"version": "3.2.0", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "publishConfig": { |
@@ -86,2 +86,3 @@ [![Build Status](https://travis-ci.com/Alheimsins/b5-costa-mccrae-300-ipip-neo-pi-r.svg?branch=main)](https://travis-ci.com/Alheimsins/b5-costa-mccrae-300-ipip-neo-pi-r) | ||
### Tranlate on GitHub | ||
- clone the repo | ||
@@ -98,2 +99,7 @@ - find a language you know in [data](data) | ||
### Translate from the web | ||
- visit [b5.translations.alheimsins.net](https://b5.translations.alheimsins.net/b5-costa-mccrae-300-ipip-neo-pi-r) | ||
- follow the instructions | ||
- happiness :-) | ||
## Related | ||
@@ -100,0 +106,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
161030
6537
121