Mocha: proper name

Created on 11 Jul 2016  路  8Comments  路  Source: mochajs/mocha

Okay, since we needed to use mochajs for the GH org and mochajs.org for the site, there's a precedent for MochaJS as the proper name, or Mocha.js. But then again mocha is the package and mocha is the repo and the logo reads "mocha".

An argument for "MochaJS" or "Mocha.js" is that it is unique, and thus easily searchable. An argument for "Mocha" is that it is simple. Curious to hear anybody's thoughts.

@mochajs/core

question

Most helpful comment

| GH Org | Repo | Package/Executable | Name in Website | Website |
| --- | --- | --- | --- | --- |
| chancejs | chancejs | chance | Chance | http://chancejs.com/ |
| gruntjs | grunt | grunt / grunt-cli | Grunt | http://gruntjs.com/ |
| gulpjs | gulp | gulp / gulp-cli | gulp | http://gulpjs.com/ |
| mochajs | mocha | mocha | Mocha | http://mochajs.org/ |
| nodejs | node | node | Node.js | https://nodejs.org/ |
| unexpectedjs | unexpected | unexpected | Unexpected | http://unexpected.js.org/ |

(feel free to edit and add more)

All 8 comments

Sorry for the potentially silly question: Proper name of what? 馃槵

MochaJS seems right to me. If it's the URL, it should be the name. MochaJS is the way I've heard it referenced in the wild.

@willluce would you expect the package name and cli executable to be mochajs?

@boneskull that makes sense. As a developer, I can see that as an evolution of the project. This just feels like pulling everything together and making it more professional. Even npm is https://www.npmjs.com/

I don't think the names of the package and executable need to be changed to reflect a shift in name. Node.js remains node, and it's usually clear what "node" refers to in a conversation's context.

Even npm is https://www.npmjs.com/

Well... can't say for sure, but that might've had something to do with http://www.npm.com/ being a redirect to nasdaqprivatemarket.com. =)

| GH Org | Repo | Package/Executable | Name in Website | Website |
| --- | --- | --- | --- | --- |
| chancejs | chancejs | chance | Chance | http://chancejs.com/ |
| gruntjs | grunt | grunt / grunt-cli | Grunt | http://gruntjs.com/ |
| gulpjs | gulp | gulp / gulp-cli | gulp | http://gulpjs.com/ |
| mochajs | mocha | mocha | Mocha | http://mochajs.org/ |
| nodejs | node | node | Node.js | https://nodejs.org/ |
| unexpectedjs | unexpected | unexpected | Unexpected | http://unexpected.js.org/ |

(feel free to edit and add more)

That list confirms my hunch that the apparent inconsistency in Mocha's naming convention is actually consistent with a common convention for JS libraries and tools.

Even in the absence of such examples, I'd be inclined to keep the current convention on the grounds that:

  • Mocha is arguably the library/tool's "true" name, easier to read out loud, and the simpler way to refer to it when in a context where it's already obvious we're working with JavaScript, but
  • MochaJS (or mochajs in GH/urls where capitalization is frowned upon or ignored) is handily explicit and clear in broader contexts, like saying "the JavaScript tool/library Mocha" only far less wordy, thus avoiding vagueness as to what Mocha is or potential confusion with any non-JS thing named Mocha (though I'm not aware of any at this time, who knows what the future holds; just look at the Jade/Pug issue, or the leftpad fiasco)

@dasilvacontin's table basically resolves this issue. excellent work

Was this page helpful?
0 / 5 - 0 ratings

Related issues

juergba picture juergba  路  3Comments

luoxi001713 picture luoxi001713  路  3Comments

eschwartz picture eschwartz  路  3Comments

niftylettuce picture niftylettuce  路  3Comments

3p3r picture 3p3r  路  3Comments