Giter VIP home page Giter VIP logo

npm-expansions's Introduction

npm-expansions

NPM version NPM license

What does n-p-m stand for?

What This Is

This is the source code for the three-word thingies that randomly appear in the header of the npmjs.com website. Examples include:

  • Naughty Push Message
  • Nectar of the Programming Masses
  • Needless Patchouli Manufacture
  • Neil Patrick's Mansion
  • Never Program Mad
  • Never Push to Master
  • Neverending Plethora of Modules
  • Newton's Programmatic Measurements
  • Newts Parading Majestically
  • Nice Poodle, Mister
  • Nickel Plated Moose
  • Nineties Party Mix
  • Null Pointer Missing

How to Contribute

  1. Add your own expansion to expansions.txt
  2. Run npm test (this will format and alphabetize the file)
  3. Send us a pull request!

If you think of multiple possibilities, please submit them as separate PRs, as we may like some but not others.

Some other suggestions:

  • Be meaningful. Three random words is not good enough.
  • Be funny. This is very subjective, we realize, so try not to take it personally if we don't get it.
  • Be novel. If your expansion starts with "Node" the other two words better be pretty great.
  • Avoid hyphenation, especially "non-". Yes, there are some in there already. Sorry.
  • Use actual words. You can't just make up random new words. Unless they're really good.
  • Avoid names of people and products (other than npm ;-))
  • Avoid expansions that are gendered, sexual, religious, aggressive, or violent. We are a diverse, positive place.
  • Avoid anything that even slightly hints of violating npm's code of conduct. These are literally the first words that appear on the website, and our audience is very broad, so it's best to avoid things that can be misconstrued.
  • Avoid using proper country and/or corporate names

No More Please

We'll no longer be accepting expansions that begin with the following frequent suggestions:

  • National
  • Nautical
  • Naughty
  • Nerd(s)
  • Never
  • New
  • Newly
  • Nice
  • Nicely
  • Nifty
  • Ninja(s)
  • No
  • Non
  • Nobody
  • Nobody's
  • Node
  • Not
  • Now

Conflicts

If your Pull Request has conflicts it will be closed automatically. We apologize beforehand for anyone that might have to reopen their contribution after rebasing and/or fixing the issue on their branch. We're looking to modernize/automate much of the checking/verfication of submissions going forward.

npm-expansions's People

Contributors

ademisk avatar alexwebgr avatar ceejbot avatar darcyclarke avatar dargacode avatar darrylyeo avatar devtanc avatar eedrah avatar elenchev avatar fvdm avatar gregdeane avatar isaacs avatar jmm avatar netaisllc avatar nmielnik avatar notslang avatar pdl avatar radiovisual avatar revin avatar robertrossmann avatar rockbot avatar rod11 avatar ryanvfung avatar seldo avatar sudodoki avatar tylereich avatar vinaynb avatar waddah-jd avatar zeke avatar zkat avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

npm-expansions's Issues

Needs more pumpkin

I see ~10 pumpkin-themed 'npm texts' on the live site, and wanted to add more, but noticed that expansions.txt only has 3 pumpkin texts. Where are the other pumpkins coming from?

Automatically found npm acronyms

So, I made a little node module for all of the example corpora used by NLTK, which includes basically these books: ['austen-emma.txt', 'austen-persuasion.txt', 'austen-sense.txt', 'bible-kjv.txt', 'blake-poems.txt', 'bryant-stories.txt', 'burgess-busterbrown.txt', 'carroll-alice.txt', 'chesterton-ball.txt', 'chesterton-brown.txt', 'chesterton-thursday.txt', 'edgeworth-parents.txt', 'melville-moby_dick.txt', 'milton-paradise.txt', 'shakespeare-caesar.txt', 'shakespeare-hamlet.txt', 'shakespeare-macbeth.txt', 'whitman-leaves.txt']

I then made a module that basically automatically goes through them looking for 'npm' acronyms. I got these:

[ 'not promoted Mr',
  'not produce much',
  'no positive merit',
  'not persuade myself',
  'next perhaps Mr',
  'not pity me',
  'not pity me',
  'nearly promised moreover',
  'not prevent my',
  'not pin myself',
  'not prevent MY',
  'No Pall Mall',
  'not performed my',
  'not pardon my',
  'not poured me',
  'now put me',
  'now persuade men',
  'new paradise Michael',
  'necktie Put me',
  'new psychometric method',
  'not pull my',
  'NEW playthings mother',
  'now pray Mrs',
  'not particularly melodious',
  'no pocket money',
  'never pinch my',
  'noble prophet Moses',
  'no possible mistake',
  'no Paradise myself',
  'nothing profits more',
  'next Provokes my',
  'now pleases more',
  'not Pompey many',
  'not Parchment made',
  'nor Poyson Mallice',
  'Non pareill Mur',
  'not press my',
  'not prove me' ]

My question now is -- what do you think? Are these worth adding? Should I make it a node package?

Not a serious issue.

Node palindromes!

As a curiosity I made a program to compute all npm palindromes:

nam pap man
nam peep man
nam pep man
nam pip man
nam poop man
nam pop man
nam pullup man
nam pup man
name pape man
name pe man
name peepe man
name pipe man
name pope man
namer pre man
nametape pate man
namma pam man
nams paps man
nams peeps man
nams peps man
nams pips man
nams poops man
nams pops man
nams pullups man
nams pups man
namu pupu man
ne psi mispen
nema pa men
nema palapa men
nema papa men
nema pipa men
nema pupa men
nemesia paise men
nitramine peni martin
no pote metopon
nom pap mon
nom peep mon
nom pep mon
nom pip mon
nom poop mon
nom pop mon
nom pullup mon
nom pup mon
noma pa mon
noma palapa mon
noma papa mon
noma pipa mon
noma pupa mon
nome pape mon
nome pe mon
nome peepe mon
nome pipe mon
nome pope mon
nomograph pargo mon
noms paps mon
noms peeps mon
noms peps mon
noms pips mon
noms poops mon
noms pops mon
noms pullups mon
noms pups mon
nongame pape magnon
nongame pe magnon
nongame peepe magnon
nongame pipe magnon
nongame pope magnon
notum pap muton
notum peep muton
notum pep muton
notum pip muton
notum poop muton
notum pop muton
notum pullup muton
notum pup muton
noumena pane muon
noumenal peneplane muon
noumenal plane muon

Unfortunately quite a few end up being scatalogical due to the p in the middle (nom poop mon...) Still, there might be a few here that are almost sensible enough to approach something clever.

Even if it doesn't make the cut, perhaps you might find them amusing.

npm pacakge install fails continuously

This is the error I am getting when i try to build the package.
Fetching packages...
{ Error: unexpected end of file
at Zlib._handle.onerror (zlib.js:371:17) errno: -5, code: 'Z_BUF_ERROR' }

node --version
v6.15.1

Remove npmjs.com link to this repo

It appears that no PR has been merged for several months now.

I think either PRs should be merged again (perhaps consider removing old quotes in favor of new ones?) or the website should stop redirecting to this repo.

Thoughts?

login problem

I've forgot pwd, after taking the link couldn't login. is it normal :) ?

npm test fails

On executing the command npm test. I get the following error

> [email protected] pretest /Users/karthicksubramanianm/codei/npm-expansions
> node build.js


> [email protected] test /Users/karthicksubramanianm/codei/npm-expansions
> tap test

sh: tap: command not found
npm ERR! Test failed.  See above for more details.

System Information:

OS: Mac High Sierra
node: 10.8.0
npm: 6.2.0

text in the mirrored font at 791 and 792

Line number 791 and 792 are mirrored not sure if it was meant to be that way or a mistake just wanted to give a heads up. Also it might look weird on npm website.

nuǝɯ pǝɥsᴉꞁod mǝu
nuǝW pǝuoᴉʇᴉsoԀ ʎlǝʌᴉʇɐƃǝN

Code Golf

Here is the shortest single javascript expression I could find to generate npm expansions:

require("fs").readFileSync("/usr/share/dict/british-english",{encoding:'utf8'}).split('\n').reduce(function(p,c){o={'n':0,'p':1,'m':2};if(Math.random()<.1)p[o[c[0]]]=c;return p},[]).join(' ');

Can someone make it shorter?

npm commands

how to Configure scripts in package.json (a) to check the versions of npm and node by using npm run release | tee output1.txt (b) to execute index.js by using npm run build | tee output.txt ?????

2.0

The pull requests were starting to pile up (130+) and many of them were not green-button mergeable, so I wrote this little bash function:

yolo() {
  set +x
  git checkout -b $1-$2 master
  git pull https://github.com/$1/npm-expansions.git $2
  git add .
  git commit -am "yolo"
  git checkout master
  git merge --no-ff $1-$2
  git push origin master
  set -x
}

Then I pulled down all the user:branch name pairs from the github API using curl and the indispensable json CLI module:

curl -s "https://api.github.com/repos/npm/npm-expansions/pulls?sort_created&direction=asc&per_page=100&page=1" \
  | json -a head.label \
  | pbcopy

Then I hand-prepared a list in Atom:

yolo sudodoki npm-expansions-duh
yolo brentertz patch-2
yolo andela-bojengwa patch-1
...

Once every PR had been merged, I cleaned up all the merge conflicts and threw out expansions.json. Now there's a simple index.js that ingests the text file and splits by line. There is no build step, and brfs is used to make the fs call work in the browser.

As of this moment, we're at 99 contributors. Keep those expansions coming, and enjoy the simpler new format: txt

<3

Is anyone actually looking at the pull requests?

I don't mean to be rude, but I looked at the amount of pull requests open, and there is quite a lot!
I kindly respect the fact it takes time to look through, as of writing, 238 pull requests, although I would be happy to, at some point, look though some of the pull requests.

Several expansions violate instructions in README.md

The README instructions suggest to "Avoid expansions that are gendered, sexual, aggressive, or violent. We are a diverse, positive place." This is really awesome and totally expected w/ NPM. However, quite a few of the expansions violate this, e.g. from the README file itself:

Nymphets Playing Mahjong

Where Wikipedia defines a "Nymphet" as "a sexually attractive girl, or young woman". Suggest cleaning up some of the more questionable expansions to make the list more in line with the instructions and Code of Conduct.

Spanish one ?

Can we add an Spanish one ?

Nueva Página Multimedia (translation: New Multimedia Site)

not able to install ngeohash

I have npm installed in my machine. But not able to install module ngeohash via npm. Please find the error message below. Any help will be appreciated.
npm -v
6.5.0

npm install ngeohash

[email protected] install /Users/babu.yadav/repo/devices_api_node/node_modules/ngeohash
browserify . -o ngeohash.js -s ngeohash

sh: browserify: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! [email protected] install: browserify . -o ngeohash.js -s ngeohash
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the [email protected] install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/babu.yadav/.npm/_logs/2018-12-16T09_35_23_786Z-debug.log

What about posting expansions as issues?

This is a cool thing, but isn't the overhead of a whole pull request for a single line a bit too much? I mean, it's not very optimized for this use-case.

I thought about contributing something ("next package, maybe" and "neurotic programmers' medicine"), then read that you need a whole pull request and thought... that's a lot of work for a suggestion system.

So, hopefully not sounding like a lazy ass, wouldn't issues be more lightweight? Someone responsible could just go through them once in a while and close them while adding.

tap keeps failing

I am opening this issue because:

  • npm is crashing
  • npm is producing a incorrect install
  • npm is doing something I don't understand
  • Other (see below for feature requests)

What's going wrong?

This issue has been happening since 2.2.4 I was doing npm test on npm expansions and it keeps failing.
Here is my complete log about the test

> [email protected] pretest C:\Users\Jerome\node_modules\npm-expansions
> node build.js


> [email protected] test C:\Users\Jerome\node_modules\npm-expansions
> tap test

internal/modules/cjs/loader.js:583
    throw err;
    ^

Error: Cannot find module 'tap'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:581:15)
    at Function.Module._load (internal/modules/cjs/loader.js:507:25)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:20:18)
    at Object.<anonymous> (C:\Users\Jerome\node_modules\npm-expansions\test\index.js:2:12)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
test/index.js ......................................... 0/1
  not ok test/index.js
    timeout: 30000
    file: test/index.js
    command: 'C:\Program Files\nodejs\node.exe'
    args:
      - test/index.js
    stdio:
      - 0
      - pipe
      - 2
    cwd: 'C:\Users\Jerome\node_modules\npm-expansions'
    exitCode: 1

total ................................................. 0/1


  0 passing (161.476ms)
  1 failing

npm ERR! Test failed.  See above for more details.

How to reproduce the problem

Install tap and npm-expansions then

cd node_modules
cd npm-expansions
npm test

Supporting information

  • npm config get registry prints https://registry.npmjs.org
  • npm -v prints 6.4.1
  • node -v prints v10,11,0
  • OS: Windows
  • Network issues: None
  • Location where npm was run: US
    • I use a proxy to connect to the npm registry
    • I use a proxy to connect to the web
    • I use a proxy when downloading a Git repos
    • I access the npm registry via a VPN
    • I don't use a proxy, but have limited or unreliable internet acess
  • Container:
    • I develop using Vagrant on Windows
    • I develop using Vagrant on OS X or Linux
    • I develop / deploy using Docker
    • I develop to a PaaS (Triton, Heroku)

Getting error when running npm test

I want to contribute the repository so i forked and cloned it, and also made my changes to the extensions.txt file.
It was written in How to Contribute to run npm test, but i get the following error when i run npm test:

PS C:\Users\Muktadir Khan\Downloads\Opensource\npm-extensions> npm test
npm ERR! path C:\Users\Muktadir Khan\Downloads\Opensource\npm-extensions\package.json
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\Muktadir Khan\Downloads\Opensource\npm-extensions\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Muktadir Khan\AppData\Roaming\npm-cache\_logs\2019-10-05T13_43_41_667Z-debug.log

Please guide as to what am i doing wrong.

Merge [more frequent] expansions using FIFO, not LIFO

I have submitted 100+ expansions, but only 2 of them have been merged. I noticed that only a few contributed expansions get merged each month, and you use a LIFO (Last In, First Out) system, which means the people who contributed first are being overlooked by the newest contributions.

For example, I have one expansion: Narnia's Psychedelic Mushrooms that I submitted 29 days ago, but just the other day you merged a similar expansion: Neolithic Psychedelic Mushrooms that was submitted 4 days ago, so naturally I feel like mine won't be merged now, because it is now too similar to an existing expansion, even though mine was submitted 25 days earlier. So a FIFO (First In, First Out) system keeps everything balanced, and fair.

It is really fun to participate in this expansions repo, and see our contributions on the npm site, which we use everyday, but lately our contributions aren't really being added (only a couple each month). So I propose that you merge your pull requests using a First In, First Out system, so the earliest contributors get proper credit, and aren't lost to oblivion.

Lastly, if you need some help, I am happy to help you do the grunt work. Even with 100+ contributions, I am still yet to see any of my expansions on the npm website, and it is, after all, a dream of mine to see my contribution shining in the top-left corner of the npm website I use everyday. 😃 ❤️

[BUG] npm install shows 3 vulnerabilities in dependencies

Steps to Reproduce

Run npm install after cloning the repo

> npm install
npm WARN prepublish-on-install As of npm@5, `prepublish` scripts are deprecated.
npm WARN prepublish-on-install Use `prepare` for build steps and `prepublishOnly` for upload-only.
npm WARN prepublish-on-install See the deprecation note in `npm help scripts` for more information.

> [email protected] prepublish F:\Git\npm-expansions
> npm test


> [email protected] pretest F:\Git\npm-expansions
> node build.js


> [email protected] test F:\Git\npm-expansions
> tap test

total ................................................... 0/0

ok
audited 24 packages in 1.061s
found 3 vulnerabilities (2 low, 1 high)
  run `npm audit fix` to fix them, or `npm audit` for details

Expected Behavior

No vulnerabilities reported

Who

  • n/a

References

  • n/a

Other languages

Hello there.

Can i use other languages, like portuguese, for example?

Include the contributor

It would be nice if the data included the contributor and a mouse-over on the web site showed their npm account. Just a little easter egg for people to find.

BROKEN JSON

the no pants mom one in the middle has no comma after it

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.