├── .github ├── FUNDING.yml └── pull_request_template.md ├── LICENSE ├── README.md ├── index.js ├── package.json └── questions.json /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: cassidoo 2 | patreon: cassidoo 3 | -------------------------------------------------------------------------------- /.github/pull_request_template.md: -------------------------------------------------------------------------------- 1 | **Silly questions I'm adding:** 2 | 3 | **Serious questions I'm adding:** 4 | 5 | **These questions check the following boxes:** 6 | 7 | - [ ] Added in alphabetical order 8 | - [ ] Memorable (it should pop in the user's head right away) 9 | - [ ] Unique (there should be one precise answer for the user) 10 | - [ ] Unpredictable (something others can't easily guess or research) 11 | - [ ] Consistent (it shouldn't change over time) 12 | 13 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | ISC License 2 | 3 | Copyright (c) 2022 Cassidy Williams 4 | 5 | Permission to use, copy, modify, and/or distribute this software for any 6 | purpose with or without fee is hereby granted, provided that the above 7 | copyright notice and this permission notice appear in all copies. 8 | 9 | THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH 10 | REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY 11 | AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, 12 | INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM 13 | LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR 14 | OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR 15 | PERFORMANCE OF THIS SOFTWARE. 16 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | Better Security Questions 🔒 2 | =========================== 3 | 4 | Security questions are pretty boring and stereotypical (like, "what's your mother's maiden name?" and "on what street did you grow up?") which are fine, but... predictable and unsafe. 5 | 6 | This is a package of better security questions to make the world safer for eeeeeveryone! 7 | 8 | ## To install 9 | 10 | ```bash 11 | npm install better-security-questions 12 | ``` 13 | 14 | ## To use 15 | 16 | ```js 17 | const securityQuestions = require('better-security-questions'); 18 | 19 | securityQuestions.silly; 20 | > ["Are you even good enough to have imposter syndrome?", ... 21 | 22 | securityQuestions.random('silly'); 23 | > "When did you stop trying?" 24 | ``` 25 | 26 | ## To contribute 27 | 28 | Please add questions that you think would be good! Answers to them should be: 29 | 30 | - Memorable (it should pop in the user's head right away) 31 | - Unique (there should be one precise answer for the user) 32 | - Unpredictable (something others can't easily guess or research) 33 | - Consistent (it shouldn't change over time) 34 | 35 | Remember to add your question following the alphabetical order! -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | const data = require('./questions.json'); 2 | 3 | exports.silly = data.silly; 4 | exports.serious = data.serious; 5 | 6 | exports.random = function random(type) { 7 | let items; 8 | 9 | // If a question type is not passed to the function, 10 | // merge all the questions types. 11 | if (!type) { 12 | const types = Object.keys(data); 13 | items = [] 14 | 15 | for (const type of types) { 16 | items = [...items, ...data[type]] 17 | } 18 | } else { 19 | items = data[type] 20 | } 21 | 22 | if (!items) { 23 | return undefined; 24 | } 25 | 26 | return items[Math.floor(Math.random() * items.length)]; 27 | }; -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "better-security-questions", 3 | "version": "1.1.0", 4 | "description": "Better security questions for easy use in your projects", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "repository": { 10 | "type": "git", 11 | "url": "https://github.com/cassidoo/better-security-questions.git" 12 | }, 13 | "keywords": [ 14 | "security", 15 | "questions" 16 | ], 17 | "author": "cassidoo", 18 | "license": "ISC", 19 | "bugs": { 20 | "url": "https://github.com/cassidoo/better-security-questions/issues" 21 | }, 22 | "homepage": "https://github.com/cassidoo/better-security-questions#readme" 23 | } 24 | -------------------------------------------------------------------------------- /questions.json: -------------------------------------------------------------------------------- 1 | { 2 | "serious": [ 3 | "At what age did you get your first mobile phone? Which phone was it?", 4 | "What book that you hate were you forced to read in school?", 5 | "What decision changed the course of your life?", 6 | "What did you want to be when you were a child?", 7 | "What do you think is the best invention ever made?", 8 | "What food that you hate are you regularly offered to eat?", 9 | "What grammatical mistake is your pet peeve?", 10 | "What is a question only you know the answer to?", 11 | "What is a single item that brought you joy as a child?", 12 | "What is the best visually unappealing but tasty food you've eaten?", 13 | "What is the biggest lie you have ever told?", 14 | "What is your best childhood memory?", 15 | "What is your best memory of high school?", 16 | "What is your biggest regret?", 17 | "What is your favorite board game?", 18 | "What is your favorite book's author?", 19 | "What is your greatest fear?", 20 | "What movie star do you dislike the most?", 21 | "What place do you want to visit before you die?", 22 | "What song did you love as a child but you hate now?", 23 | "What song is your most frequent earworm?", 24 | "What TV show did you love as a child but you hate now?", 25 | "What was the address of the house you grew up in?", 26 | "What was the area code for your first phone number?", 27 | "What was the name of your first imaginary friend?", 28 | "What was the name of your first pet?", 29 | "What was the name of your first stuffed animal?", 30 | "What was the name of your favorite teacher in school?", 31 | "What was the toy you wanted the most as a child but could not have?", 32 | "What was your dream job as a child?", 33 | "What was your favorite childhood cartoon?", 34 | "What was your safety school?", 35 | "What would you do if you could live forever?", 36 | "What's your oldest cousin's middle name?", 37 | "Where did you go the first time you went on an airplane?", 38 | "Where was your mother born?", 39 | "Where would you like to retire?", 40 | "Which family member are you closest to?", 41 | "Who is the best boss you've ever had?", 42 | "Who is the shortest person you know?", 43 | "Who is the worst boss you've ever had?", 44 | "Who is your favorite fictional character?", 45 | "Who was your first kiss?", 46 | "Who was your mother's favorite movie star?" 47 | ], 48 | "silly": [ 49 | "Are you even good enough to have imposter syndrome?", 50 | "At what age did your childhood pet run away?", 51 | "Do you lie about being busy to not hang out with someone?", 52 | "Have you ever lied on your resume? If so, what was the lie?", 53 | "How old were you when you started to love a food that you used to hate? What was the food?", 54 | "If you could have dinner with any historical figure, who would you choose?", 55 | "If you could only take one music album to a deserted island what would it be?", 56 | "On which street did you lose your childlike sense of wonder?", 57 | "What TV show do you keep rewatching to suppress the anxious feelings of the uncertainty of real life?", 58 | "What always got you in trouble as a kid?", 59 | "What annoys you the most before your morning coffee?", 60 | "What brand of underwear do you wear?", 61 | "What caused you to realize that capitalism is a sham?", 62 | "What chore do you suck the most at?", 63 | "What food do you realize you cannot live without?", 64 | "What gift did you never get that you still want?", 65 | "What habit do you wish you could quit?", 66 | "What is a question an oyster would ask a fish?", 67 | "What is something you've always done and now realize is weird?", 68 | "What is the answer to your favorite security question?", 69 | "What is the biggest waste of money?", 70 | "What is the maiden name of your father's mistress?", 71 | "What is the meanest thing you've done to a friend?", 72 | "What is the most petty hill you'll die on?", 73 | "What is the most useless Airbnb amenity?", 74 | "What is the name of your favorite canceled TV show?", 75 | "What is the phone number of your crush that you still remember from 2007?", 76 | "What is the silliest thing you have ever seen a stranger do in public?", 77 | "What is the word on page 86 line 6, word 5 of the manual?", 78 | "What is your favorite conference swag?", 79 | "What is your favorite knock-knock joke?", 80 | "What is your favorite security question?", 81 | "What is your favorite show of all time?", 82 | "What is your least favorite friend's middle name?", 83 | "What is your least secret secret?", 84 | "What is your most expensive mistake?", 85 | "What is your password?", 86 | "What is your worst coping/defense mechanism?", 87 | "What keeps you up at day?", 88 | "What keeps you up at night?", 89 | "What movie have you watched an embarrassing number of times?", 90 | "What rumor would you create about yourself just to be the talk of the town?", 91 | "What smell takes you back to childhood?", 92 | "What song do you sing in the shower?", 93 | "What was the biggest thing you screwed up and no one noticed?", 94 | "What was the name of the first person who broke your heart?", 95 | "What was the name of your favorite unpaid internship?", 96 | "What was your favorite band in 2009?", 97 | "What will people be nostalgic for in 500 years?", 98 | "What would be the best way to prank your best friend?", 99 | "What would you choose for your last meal?", 100 | "What would you do with a million dollars?", 101 | "What would your full name be if you married your first crush?", 102 | "What's something you've done to try to be cool?", 103 | "What's the first name of the person who embarrassed you the most in high school?", 104 | "What's the inside joke from high school that you hope no one remembers?", 105 | "When did you stop trying?", 106 | "When you close your eyes and think of warmth, the Sun, and happiness—what does it remind you of?", 107 | "Where do babies come from?", 108 | "Where is the most embarrassing place you've farted in?", 109 | "Which celebrity do you most resemble?", 110 | "Which college class broke you?", 111 | "Which friend or family member chews their food the loudest?", 112 | "Which game were you most often picked last for on the playground as a kid?", 113 | "Which household appliance do you hit the most often?", 114 | "Who is the shadiest TV character you know?", 115 | "Whom would you summon to haunt your greatest enemy?", 116 | "Why did the chicken cross the road?", 117 | "Why is it always raining?", 118 | "You should have said something back then. What should you have said?", 119 | "You should most definitely not buy that. What is it?", 120 | "You should probably get rid of the Object but you won't. What is the Object?" 121 | ] 122 | } 123 | --------------------------------------------------------------------------------