Steps
- For a NodeJS project, update it’s package.json file’s “license” as MIT
- Create a LICENSE file in the project’s root repository
- Visit the [Choose a License] website to know more about license types
- Note: Open-source projects typically use MIT licenses but may differ on specific projects. Choose one which applies to your project
- Copy the contents of the license text into the LICENSE file.
- 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