├── CODE_OF_CONDUCT.md ├── CONTRIBUTING.md ├── LICENSE ├── Readme.md ├── index.js └── package.json /CODE_OF_CONDUCT.md: -------------------------------------------------------------------------------- 1 | # Contributor Code of Conduct 2 | 3 | As contributors and maintainers of this project, and in the interest of fostering an open and welcoming community, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities. 4 | 5 | We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, ethnicity, age, religion, or nationality. 6 | 7 | Examples of unacceptable behavior by participants include: 8 | 9 | * The use of sexualized language or imagery 10 | * Personal attacks 11 | * Trolling or insulting/derogatory comments 12 | * Public or private harassment 13 | * Publishing other's private information, such as physical or electronic addresses, without explicit permission 14 | * Other unethical or unprofessional conduct. 15 | 16 | Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. By adopting this Code of Conduct, project maintainers commit themselves to fairly and consistently applying these principles to every aspect of managing this project. Project maintainers who do not follow or enforce the Code of Conduct may be permanently removed from the project team. 17 | 18 | This code of conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. 19 | 20 | Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers. 21 | 22 | This Code of Conduct is adapted from the [Contributor Covenant](http://contributor-covenant.org), version 1.2.0, available at [http://contributor-covenant.org/version/1/2/0/](http://contributor-covenant.org/version/1/2/0/) 23 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | # Contributing 2 | 3 | * Fork the project. 4 | * Make your feature addition or bug fix. 5 | * Add documentation if necessary. 6 | * Add tests for it. This is important so I don't break it in a future version unintentionally. 7 | * Send a pull request. Bonus points for topic branches. 8 | 9 | ## Code of Conduct 10 | 11 | Please note that this project is released with a [Contributor Code of Conduct](CODE_OF_CONDUCT.md). By participating in this project you agree to abide by its terms. 12 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Copyright (c) 2016 Andrew Nesbitt 2 | 3 | Permission is hereby granted, free of charge, to any person obtaining 4 | a copy of this software and associated documentation files (the 5 | "Software"), to deal in the Software without restriction, including 6 | without limitation the rights to use, copy, modify, merge, publish, 7 | distribute, sublicense, and/or sell copies of the Software, and to 8 | permit persons to whom the Software is furnished to do so, subject to 9 | the following conditions: 10 | 11 | The above copyright notice and this permission notice shall be 12 | included in all copies or substantial portions of the Software. 13 | 14 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 15 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 16 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 17 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 18 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 19 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 20 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 21 | -------------------------------------------------------------------------------- /Readme.md: -------------------------------------------------------------------------------- 1 | # [Buzzfeed](http://libraries.io/npm/buzzfeed) 2 | [![npm version](https://badge.fury.io/js/buzzfeed.svg)](http://badge.fury.io/js/buzzfeed) 3 | [![Dependency Status](https://david-dm.org/andrew/buzzfeed.svg?theme=shields.io)](https://david-dm.org/andrew/buzzfeed) 4 | [![devDependency Status](https://david-dm.org/andrew/buzzfeed/dev-status.svg?theme=shields.io)](https://david-dm.org/andrew/buzzfeed#info=devDependencies) 5 | 6 | A Buzzfeed headline generator 7 | 8 | ## Install 9 | 10 | ```bash 11 | npm install buzzfeed 12 | ``` 13 | 14 | ## Usage 15 | 16 | ### Default Character Set Example 17 | 18 | ```javascript 19 | Buzzfeed = require('buzzfeed') 20 | Buzzfeed() // '34 loosely outstanding things your parents will never understand happened behind a big red dog that make great song lyrics' 21 | ``` 22 | 23 | ## Development 24 | 25 | Source hosted at [GitHub](http://github.com/andrew/buzzfeed). 26 | Report Issues/Feature requests on [GitHub Issues](http://github.com/andrew/buzzfeed). 27 | 28 | ### Note on Patches/Pull Requests 29 | 30 | * Fork the project. 31 | * Make your feature addition or bug fix. 32 | * Add tests for it. This is important so I don't break it in a future version unintentionally. 33 | * Send me a pull request. Bonus points for topic branches. 34 | 35 | ## Copyright 36 | 37 | Copyright (c) 2015 Andrew Nesbitt. See [LICENSE](https://github.com/andrew/buzzfeed/blob/master/LICENSE) for details. 38 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | var advArray = [ 2 | "incredibly", 3 | "hilariously", 4 | "particularly", 5 | "fantastically", 6 | "totally", 7 | "literally", 8 | "definitely", 9 | "trendy", 10 | "simply", 11 | "deliciously", 12 | "unbelievably", 13 | "only", 14 | "lovely", 15 | "tenderly", 16 | "wildly", 17 | "eagerly", 18 | "tightly", 19 | "safely", 20 | "rudely", 21 | "madly", 22 | "loosely", 23 | "foolishly", 24 | "always", 25 | "deliberately", 26 | "elegantly", 27 | "hopelessly", 28 | "perfectly", 29 | "selfishly", 30 | "totally", 31 | "badly", 32 | "awesomely", 33 | "fucking", 34 | "awkwardly", 35 | "tragically" 36 | ]; 37 | 38 | var adjArray =[ 39 | "mundane", 40 | "hilarious", 41 | "stupid", 42 | "outrageous", 43 | "disgusting", 44 | "best", 45 | "vintage", 46 | "hipster", 47 | "surprising", 48 | "disturbing", 49 | "funniest", 50 | "juicy", 51 | "sacred", 52 | "mind-bending", 53 | "coma-inducing", 54 | "90's", 55 | "80's", 56 | "70's", 57 | "drool-worthy", 58 | "aggressive", 59 | "bloody", 60 | "next-level", 61 | "colorful", 62 | "handsome", 63 | "magnificent", 64 | "shiny", 65 | "sparkling", 66 | "ugly", 67 | "expensive", 68 | "horrible", 69 | "impossible", 70 | "innocent", 71 | "modern", 72 | "mushy", 73 | "odd", 74 | "outstanding", 75 | "powerful", 76 | "prickly", 77 | "real", 78 | "super", 79 | "talented", 80 | "wild", 81 | "awful", 82 | "bad", 83 | "clumsy", 84 | "confused", 85 | "crazy", 86 | "creepy", 87 | "dangerous", 88 | "disgusted", 89 | "evil", 90 | "fierce", 91 | "grumpy", 92 | "lazy", 93 | "mysterious", 94 | "nasty", 95 | "naughty", 96 | "obnoxious", 97 | "outrageous", 98 | "scary", 99 | "terrible", 100 | "funny", 101 | "fat", 102 | "gigantic", 103 | "huge", 104 | "massive", 105 | "teeny-tiny", 106 | "noisy", 107 | "filthy", 108 | "life-changing", 109 | "unfathomable", 110 | "teeny-weeny", 111 | "fuzzy", 112 | "greasy", 113 | "prickly", 114 | "uneven", 115 | "chewy", 116 | "wet" 117 | ]; 118 | 119 | var verbArray =[ 120 | "you won't believe", 121 | "you can't imagine", 122 | "you're unable to comprehend", 123 | "that prove", 124 | "about", 125 | "you turn down for what that", 126 | "you can't watch at work", 127 | "you'll want to do in bed", 128 | "you know you love", 129 | "they did last Christmas", 130 | "you dreamt about at night", 131 | "you did when you were five", 132 | "you experienced on your last acid trip", 133 | "you hide from your mom", 134 | "Kanye interrupts", 135 | "you need to see", 136 | "you wish you did", 137 | "you fantasize about", 138 | "you'll never want to see again", 139 | "you'll start crying over", 140 | "you will never admit you do", 141 | "you lust after", 142 | "you know and love", 143 | "you can't tweet about", 144 | "you won't post on facebook", 145 | "you can't SnapChat", 146 | "you can Instagram", 147 | "you won't show your kids", 148 | "you have to try", 149 | "you'll be obsessing over", 150 | "you crave everyday", 151 | "your parents will never understand", 152 | "you wish happened to you", 153 | "you can put on your bucketlist" 154 | ]; 155 | 156 | var nounArray =[ 157 | "Kanye West", 158 | "Orange is the New Black", 159 | "Game of Thrones", 160 | "Jesus", 161 | "Kimye", 162 | "Breaking Bad", 163 | "Tim Howard", 164 | "Benedict Cumberbatch", 165 | "Enrique Iglesias' mole", 166 | "guacamole", 167 | "Lady Gaga", 168 | "Scientology", 169 | "Beyonce", 170 | "Sriracha", 171 | "Kimchi", 172 | "horse masks", 173 | "slippery eels", 174 | "itchy balls", 175 | "sausage fest", 176 | "hotdog legs", 177 | "Horse Masks", 178 | "kids these days", 179 | "Koala bears with untreated Chlamydia", 180 | "Pears that look like butts", 181 | "hotdog legs", 182 | "Yogurt commercials", 183 | "Wacky waving inflatable arm flailing tube man", 184 | "Miley cyrus’ tongue", 185 | "orphans and puppies", 186 | "man sideboob", 187 | "Sarah Palin", 188 | "edible thongs", 189 | "Justin Bieber's first pube", 190 | "sausage fest", 191 | "Oprah Winfrey", 192 | "Dumbledore's hat", 193 | "spirit fingers", 194 | "Ouija Board", 195 | "Selfie", 196 | "hotdog legs", 197 | "Paul the octopus", 198 | "Doge", 199 | "erotic cucumbers", 200 | "furious honey badgers", 201 | "Quesorito", 202 | "Ron Swanson", 203 | "Catholic nuns", 204 | "Nyan cat", 205 | "Coachella", 206 | "Instagram filter", 207 | "#hashtags", 208 | "Sharknado", 209 | "Let It Go cover", 210 | "Vine account", 211 | "Nicolas Cage", 212 | "the Fresh Prince of Bel-air", 213 | "Miley Cyrus’ snaggle tooth", 214 | "Sk8r Bois", 215 | "Zach Galifinakis", 216 | "Poop emoji", 217 | "Ice Bucket challenge", 218 | "Batman vs. Superman", 219 | "Chris Pratt", 220 | "Fanny Pack", 221 | "French bulldog", 222 | "chihuahuas", 223 | "Sriracha", 224 | "BitCoins", 225 | "Pornhub", 226 | "Helen Keller", 227 | "Playboy Mansion's Basement", 228 | "Tim Allen", 229 | "Lance Armstrong's only testicle", 230 | "The New Testament", 231 | "a big red dog", 232 | "the red rocket", 233 | "Barack Obama", 234 | "Old Lady Weenus", 235 | "James Dean", 236 | "Yellow Submarine", 237 | "Metta World Peace", 238 | "kegs of beer", 239 | "Kim Kardashian's booty", 240 | "Jimmy Fallon", 241 | "Curious George", 242 | "Helga from Hey Arnold", 243 | "unibrow", 244 | "Razor Scooter", 245 | "the man, the myth, the legend", 246 | "Woodstock", 247 | "Nickelback groupies", 248 | "Keith Richard's sweat", 249 | "Richard Simmons", 250 | "horse tranquilizer", 251 | "Kenny Power's K-Swiss Sneakers", 252 | "the MFCEO", 253 | "a brass monkey", 254 | "Bob Marley's dreadlock", 255 | "Guantanamo Bay", 256 | "an Angler Fish", 257 | "a young and hip Alec Baldwin", 258 | "Olive Garden" 259 | ]; 260 | 261 | var prepoArray =[ 262 | "in", 263 | "to", 264 | "on", 265 | "up", 266 | "behind", 267 | "like", 268 | "without" 269 | ]; 270 | 271 | var outcomeArray = [ 272 | "will melt your brain", 273 | "you have to see before you die", 274 | "will blow your mind", 275 | "Miley would twerk for", 276 | "you have to do in your 20s", 277 | "you have to do in your 30s", 278 | "make you go bananas", 279 | "only happen when you're high", 280 | "haters are gonna hate", 281 | "Kimye would give birth to", 282 | "Paris Hilton would like totally love", 283 | "make you projectile vomit", 284 | "give you the best orgasm", 285 | "make you cringe", 286 | "burn your retinas", 287 | "make you buy the next round", 288 | "make you jump for joy", 289 | "make you touch yourself at night", 290 | "will drop the bass", 291 | "should be a national holiday", 292 | "will induce seizures", 293 | "make you want to party", 294 | "make your heart skip a beat", 295 | "are just plain wrong", 296 | "are worse than aids", 297 | "were never explained", 298 | "will go down in history", 299 | "shouldn't be on the internet", 300 | "will soon be a George Bush painting", 301 | "make great song lyrics", 302 | "will soon be painted by George Bush", 303 | "make great song lyrics", 304 | "are better than tripping on Bath Salts", 305 | "you'll want to lather on your body", 306 | "just don't make sense", 307 | "will soon be trending", 308 | "Benjamin Franklin never invented", 309 | "will change the way you live", 310 | "will make you never eat tapioca again", 311 | "look better than moldy cottage cheese", 312 | "should be a viral meme", 313 | "will be on display in MOMA", 314 | "will break the internet" 315 | ]; 316 | 317 | var buzzfeed = function() { 318 | var number = Math.floor((Math.random() * 100) + 2); 319 | var randomAdv = advArray[Math.floor(Math.random()*advArray.length)]; 320 | var randomAdj = adjArray[Math.floor(Math.random()*adjArray.length)]; 321 | var randomVerb = verbArray[Math.floor(Math.random()*verbArray.length)]; 322 | var randomNoun = nounArray[Math.floor(Math.random()*nounArray.length)]; 323 | var randomPrep = prepoArray[Math.floor(Math.random()*prepoArray.length)]; 324 | var randomOutcome = outcomeArray[Math.floor(Math.random()*outcomeArray.length)]; 325 | return number + " " + randomAdv + " " + randomAdj + " things "+ randomVerb + " happened " + randomPrep + " " + randomNoun + " that " + randomOutcome; 326 | }; 327 | 328 | module.exports = buzzfeed 329 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "buzzfeed", 3 | "version": "1.0.1", 4 | "description": "Buzzfeed headline generator", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "echo \"Error: no test specified\" && exit 1" 8 | }, 9 | "keywords": [ 10 | "Buzzfeed", 11 | "headline", 12 | "generator" 13 | ], 14 | "author": "Andrew Nesbitt", 15 | "license": "MIT", 16 | "repository": { 17 | "type": "git", 18 | "url": "git+https://github.com/andrew/buzzfeed.git" 19 | }, 20 | "bugs": { 21 | "url": "https://github.com/andrew/buzzfeed/issues" 22 | }, 23 | "homepage": "https://github.com/andrew/buzzfeed#readme" 24 | } 25 | --------------------------------------------------------------------------------