[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Help-librejs] Multiple licenses in one JS file
From: |
Nik Nyby |
Subject: |
Re: [Help-librejs] Multiple licenses in one JS file |
Date: |
Sat, 06 Dec 2014 10:58:14 -0500 |
User-agent: |
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.3.0 |
>> I would like to free my JavaScript, but I have the following problem: We
>> have one minified JS file which contains our own JavaScript as well as
>> other open source libraries with different licenses (all concatenated).
>> How can I specify the different licenses for this one file?
>
> I'm also interested in how to do this. Folding + minifying JS files
> leads to better performance, so I hope we don't have to give up such a
> thing when using LibreJS.
I'd like to think of a way to do this, too.
We could come up with some format that LibreJS can understand that has
metadata about a combined JS file. A comment at the top of the file or a
JS Web Labels table entry could specify that, for example, lines 2 to
200 of this file contain jQuery, licensed under Expat.
For a combined and minified file that has everything on the same line,
we would have to specify the column number as well as the line number.
So for a file that contains some free code and some proprietary code, we
could figure out a way for LibreJS to only execute the free parts of
that file.
Do you have any other ideas how we could specify multiple licenses for a
combined JS file in LibreJS?