Optional
authorOptional
binOptional
bugsOptional
configA 'config' hash can be used to set configuration parameters used in package scripts that persist across upgrades.
Optional
contributorsA list of people who contributed to this package.
Optional
cpuIf your code only runs on certain cpu architectures, you can specify which ones.
Optional
dependenciesOptional
descriptionThis helps people discover your package, as it's listed in 'npm search'.
Optional
devOptional
directoriesOptional
bin?: stringIf you specify a 'bin' directory, then all the files in that folder will be used as the 'bin' hash.
Optional
doc?: stringPut markdown files in here. Eventually, these will be displayed nicely, maybe, someday.
Optional
example?: stringPut example scripts in here. Someday, it might be exposed in some clever way.
Optional
lib?: stringTell 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.
Optional
man?: stringA folder that is full of man pages. Sugar to generate a 'man' array by walking the folder.
Optional
test?: stringOptional
distOptional
shasum?: stringOptional
tarball?: stringOptional
engineOptional
enginesOptional
esnextA module ID with untranspiled code that is the primary entry point to your program.
Optional
filesThe 'files' field is an array of files to include in your project. If you name a folder in the array, then it will also include the files inside that folder.
Optional
homepageThe url to the project homepage.
Optional
keywordsThis helps people discover your package as it's listed in 'npm search'.
Optional
licenseYou should specify a license for your package so that people know how they are permitted to use it, and any restrictions you're placing on it.
Optional
licensesDEPRECATED: Instead, use SPDX expressions, like this: { "license": "ISC" } or { "license": "(MIT OR Apache-2.0)" } see: 'https://docs.npmjs.com/files/package.json#license'
Optional
mainThe main field is a module ID that is the primary entry point to your program.
Optional
maintainersA list of people who maintains this package.
Optional
manSpecify either a single file or an array of filenames to put in place for the man program to find.
Optional
moduleAn ECMAScript module ID that is the primary entry point to your program.
Optional
nameThe name of the package.
Optional
optionalOptional
osYou can specify which operating systems your module will run on
Optional
peerOptional
pluginOptional
preferDEPRECATED: This option used to trigger an npm warning, but it will no longer warn. It is purely there for informational purposes. It is now recommended that you install any binaries as local devDependencies wherever possible.
Optional
privateIf set to true, then npm will refuse to publish it.
Optional
publishOptional
readmeOptional
repositorySpecify the place where your code lives. This is helpful for people who want to contribute.
Optional
resolutionsOptional
scriptsThe 'scripts' member is an object hash of script commands that are run at various times in the lifecycle of your package. The key is the lifecycle event, and the value is the command to run at that point.
Optional
install?: stringOptional
postinstall?: stringOptional
postpack?: stringRun AFTER the tarball has been generated and moved to its final destination.
Optional
postpublish?: stringOptional
postrestart?: stringOptional
poststart?: stringOptional
poststop?: stringOptional
posttest?: stringOptional
postuninstall?: stringRun AFTER the package is uninstalled
Optional
postversion?: stringRun AFTER bump the package version
Optional
preinstall?: stringRun BEFORE the package is installed
Optional
prepack?: stringrun BEFORE a tarball is packed (on npm pack, npm publish, and when installing git dependencies)
Optional
prepare?: stringRun both BEFORE the package is packed and published, and on local npm install without any arguments. This is run AFTER prepublish, but BEFORE prepublishOnly
Optional
prepublish?: stringRun BEFORE the package is published (Also run on local npm install without any arguments)
Optional
prepublishRun BEFORE the package is prepared and packed, ONLY on npm publish
Optional
prerestart?: stringOptional
prestart?: stringOptional
prestop?: stringOptional
pretest?: stringOptional
preuninstall?: stringOptional
preversion?: stringOptional
publish?: stringOptional
restart?: stringOptional
start?: stringOptional
stop?: stringOptional
test?: stringOptional
uninstall?: stringOptional
version?: stringOptional
typesSet the types property to point to your bundled declaration file
Optional
typingsNote that the "typings" field is synonymous with "types", and could be used as well.
Optional
versionVersion must be parseable by node-semver, which is bundled with npm as a dependency.
Optional
workspacesGenerated using TypeDoc
The url to your project's issue tracker and / or the email address to which issues should be reported. These are helpful for people who encounter issues with your package.