Interface Directories

The CommonJS Packages spec details a few ways that you can indicate the structure of your package using a directories object. If you look at npm's package.json, you'll see that it has directories for doc, lib, and man.

Hierarchy

  • Directories

Properties

bin?: string

If you specify a 'bin' directory, then all the files in that folder will be used as the 'bin' hash.

doc?: string

Put markdown files in here. Eventually, these will be displayed nicely, maybe, someday.

example?: string

Put markdown files in here. Eventually, these will be displayed nicely, maybe, someday.

lib?: string

Tell people where the bulk of your library is. Nothing special is done with the lib folder in any way, but it's useful meta info.

man?: string

A folder that is full of man pages. Sugar to generate a 'man' array by walking the folder.

test?: string

?

Generated using TypeDoc