licenses.mjs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. const freeLicense = {
  2. attribution: false,
  3. commercial: true
  4. };
  5. const freeSameLicense = {
  6. attribution: false,
  7. commercial: true,
  8. sameLicense: true
  9. };
  10. const attribLicense = {
  11. attribution: true,
  12. commercial: true
  13. };
  14. const attribSameLicense = {
  15. attribution: true,
  16. commercial: true,
  17. sameLicense: true
  18. };
  19. const attribNonCommercialLicense = {
  20. attribution: true,
  21. commercial: false
  22. };
  23. const attribNonCommercialSameLicense = {
  24. attribution: true,
  25. commercial: false,
  26. sameLicense: true
  27. };
  28. const licensesData = {
  29. "Apache-2.0": freeLicense,
  30. "MIT": freeLicense,
  31. "MPL-2.0": freeLicense,
  32. "CC0-1.0": freeLicense,
  33. "CC-BY-3.0": attribLicense,
  34. "CC-BY-SA-3.0": attribSameLicense,
  35. "CC-BY-4.0": attribLicense,
  36. "CC-BY-SA-4.0": attribSameLicense,
  37. "CC-BY-NC-4.0": attribNonCommercialLicense,
  38. "CC-BY-NC-SA-4.0": attribNonCommercialSameLicense,
  39. "ISC": freeLicense,
  40. "OFL-1.1": freeLicense,
  41. "GPL-2.0-only": freeSameLicense,
  42. "GPL-2.0-or-later": freeSameLicense,
  43. "GPL-3.0": freeSameLicense,
  44. "GPL-3.0-or-later": freeSameLicense,
  45. "Unlicense": freeLicense,
  46. "BSD-2-Clause": freeLicense,
  47. "BSD-3-Clause": freeLicense
  48. };
  49. export { licensesData };