Steps

  1. For a NodeJS project, update it’s package.json file’s “license” as MIT
  2. Create a LICENSE file in the project’s root repository
  3. Visit the [Choose a License] website to know more about license types
    1. Note: Open-source projects typically use MIT licenses but may differ on specific projects. Choose one which applies to your project
  4. Copy the contents of the license text into the LICENSE file.
  5. Commit the LICENSE file to the GitHub repository

References

  • Git
  • choose an opensource license link
  • how to apply an MIT license in GitHub projects link