Skip to content

Instantly share code, notes, and snippets.

@devongovett
Created October 22, 2012 19:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save devongovett/3933591 to your computer and use it in GitHub Desktop.
Save devongovett/3933591 to your computer and use it in GitHub Desktop.

Renaming import

I'm looking for name suggestions for my import module. The purpose of the tool is to add file importing abilities to JavaScript and CoffeeScript files via a #import directive similar to other languages.

import is a bad name for the module for a number of reasons:

  1. import is a reserved word in JavaScript/CoffeeScript so you cannot write var import = require('import') without getting syntax errors.
  2. The import command line tool conflicts with another tool of the same name which is commonly installed on Linux and Mac systems as part of the Imagemagick package.

For these reasons, I'm looking for a new name. The criteria are basically that the name must be available on npm and it must not be a JS reserved word. Here are a few that I thought of:

  1. import-js
  2. concat
  3. merge
  4. flatten
  5. glue
  6. include
  7. etc.

I'm not really happy with any of those, but if you have suggestions please tell me. I'm not really very good at naming so I'm hoping someone reading this is and can help me out. Thanks!

@sindresorhus
Copy link

  • summon
  • fetch
  • add
  • introduce
  • absorb
  • retain

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment