I have a project and I want to use a ready-made script that is licensed under MIT in it. But using this script separately will be redundant.

So I've decided to merge my code and the MIT licensed script in the same file. (Let's say I'll modify, improve and/or add new features to it.)

I'm planning to sell this work on a market, but is it fair (legally)?

NOTE: Meanwhile, I'll put (refer) the MIT licensed script's copyright already in the final file.

1 Answer 1


Short Answer: Yes

From the MIT License:

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

Make sure you include the license in your source code and you should be fine. It would probably be good of you to at some point fully open source your project but I don't believe that's a requirement.

Long Answer: Talk to a Lawyer/Barrister/Legal Professional in your jurisdiction.

  • 6
    Even shorter answer: "yes".
    – tdammers
    Oct 31, 2012 at 23:03
  • 3
    @tdammers that'd be below post limit ;)
    – user28988
    Oct 31, 2012 at 23:05
  • 1
    +1 but I suggest you do edit the post so that the first line is "short answer: yes"
    – MarkJ
    Nov 1, 2012 at 6:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.