Composer.json Schema have 24 Fields

  1. name
  2. description
  3. version
  4. type
  5. keywords
  6. homepage
  7. time
  8. license
  9. authors
  10. support
  11. Package links
    1. require
    2. require-dev (root-only)
    3. conflict
    4. replace
    5. provide
  12. suggest
  13. autoload
    1. PSR-4
    2. PSR-0
    3. Classmap
    4. Files
  14. autoload-dev (root-only)
  15. include-path
  16. target-dir
  17. minimum-stability (root-only)
  18. prefer-stable (root-only)
  19. repositories (root-only)
  20. config (root-only)
  21. scripts (root-only)
  22. extra
  23. bin
  24. archive

NPM Package.json have 37 properties

  1. name
  2. version
  3. description
  4. keywords
  5. homepage
  6. bugs
  7. license
  8. people fields: author, contributors
  9. files
  10. main
  11. bin
  12. man
  13. directories
  14. directories.lib
  15. directories.bin
  16. directories.man
  17. directories.doc
  18. directories.example
  19. repository
  20. scripts
  21. config
  22. dependencies
  23. URLs as Dependencies
  24. Git URLs as Dependencies
  25. GitHub URLs
  26. Local Paths
  27. devDependencies
  28. peerDependencies
  29. bundledDependencies
  30. optionalDependencies
  31. engines
  32. engineStrict
  33. os
  34. cpu
  35. preferGlobal
  36. private
  37. publishConfig