GNU LibreJS 6.0.4: Free Licenses Detection

Next: Setting Your JavaScript Free, Previous: JavaScript Detection, Up: Top [Contents]

## 6 Free Licenses Detection

### 6.1 Detected Free Licenses

In order for a file to be detected as free, the license notice should appear in a JavaScript file above all code, at the very top of the file.

For inline JavaScript code inside `<script>` tags in HTML pages, the license notice should appear once per page as a comment inside a `<script>` tag, before all the code in that script. When the only inline JavaScript code is within element attributes (`onload`, `onclick`), place the license notice in an otherwise empty `<script>` at the top of the page. This is sometimes needed when an external script performs AJAX calls or embeds scripts dynamically, and the only inline JavaScript is an event attribute making a method call, e.g.: `<body onload=''methodCall('remote-data.xml');''>`

When people speak of the “MIT license” they mean either the X11 license or the expat license. Please see which license the code uses, and label it accordingly.

- Currently LibreJS checks for the following licenses:
- Creative Commons CC0 1.0 Universal
  - http://creativecommons.org/publicdomain/zero/1.0/legalcode
  - magnet:?xt=urn:btih:90dc5c0be029de84e523b9b3922520e79e0e6f08&dn=cc0.txt
- GNU General Public License (GPL) version 2
  - http://www.gnu.org/licenses/gpl-2.0.html
  - magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt
- GNU General Public License (GPL) version 3
  - http://www.gnu.org/licenses/gpl-3.0.html
  - magnet:?xt=urn:btih:1f739d935676111cfff4b4693e3816e664797050&dn=gpl-3.0.txt
- Apache License, Version 2.0
  - http://www.apache.org/licenses/LICENSE-2.0
  - magnet:?xt=urn:btih:8e4f440f4c65981c5bf93c76d35135ba5064d8b7&dn=apache-2.0.txt
- GNU Lesser General Public License, version 2.1
  - http://www.gnu.org/licenses/lgpl-2.1.html
  - magnet:?xt=urn:btih:5de60da917303dbfad4f93fb1b985ced5a89eac2&dn=lgpl-2.1.txt
- GNU Lesser General Public License, version 3
  - http://www.gnu.org/licenses/lgpl-3.0.html
  - magnet:?xt=urn:btih:0ef1b8170b3b615170ff270def6427c317705f85&dn=lgpl-3.0.txt
- GNU AFFERO GENERAL PUBLIC LICENSE version 3
  - http://www.gnu.org/licenses/agpl-3.0.html
  - magnet:?xt=urn:btih:0b31508aeb0634b347b8270c7bee4d411b5d4109&dn=agpl-3.0.txt
- Boost Software License
  - magnet:?xt=urn:btih:89a97c535628232f2f3888c2b7b8ffd4c078cec0&dn=Boost-1.0.txt
- The BSD 3-Clause License
  - magnet:?xt=urn:btih:c80d50af7d3db9be66a4d0a86db0286e4fd33292&dn=bsd-3-clause.txt
- Mozilla Public License 2.0
  - http://www.mozilla.org/MPL/2.0
  - magnet:?xt=urn:btih:3877d6d54b3accd4bc32f8a48bf32ebc0901502a&dn=mpl-2.0.txt
- Expat License (sometimes called MIT Licensed
  - http://www.jclark.com/xml/copying.txt
  - magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&dn=expat.txt
- X11 License
  - magnet:?xt=urn:btih:5305d91886084f776adcf57509a648432709a7c7&dn=x11.txt
- XFree86 License
  - http://www.xfree86.org/3.3.6/COPYRIGHT2.html#3
  - http://www.xfree86.org/current/LICENSE4.html
  - magnet:?xt=urn:btih:12f2ec9e8de2a3b0002a33d518d6010cc8ab2ae9&dn=xfree86.txt
- FreeBSD License
  - http://www.freebsd.org/copyright/freebsd-license.html magnet:?xt=urn:btih:87f119ba0b429ba17a44b4bffcab33165ebdacc0&dn=freebsd.txt
- The ISC License
  - https://www.isc.org/downloads/software-support-policy/isc-license/
  - magnet:?xt=urn:btih:b8999bbaf509c08d127678643c515b9ab0836bae&dn=ISC.txt
- Artistic License 2.0
  - http://www.perlfoundation.org/artistic_license_2_0
  - magnet:?xt=urn:btih:54fd2283f9dbdf29466d2df1a98bf8f65cafe314&dn=artistic-2.0.txt
- CPAL 1.0
  - http://opensource.org/licenses/cpal_1.0
  - magnet:?xt=urn:btih:84143bc45939fc8fa42921d619a95462c2031c5c&dn=cpal-1.0.txt
- Public Domain (JS Web Labels only)
  - magnet:?xt=urn:btih:e95b018ef3580986a04669f1b5879592219e2a7a&dn=public-domain.txt

### 6.2 Undetected Free Licenses

If you are using a free license that isn’t detected by LibreJS and isn’t listed in the previous section, please send a message to bug-librejs@gnu.org regarding this license, where code released under this license can be found, and where to find the license text and information.

Many free licenses are listed in this page: http://www.gnu.org/licenses/license-list.html

Next: Setting Your JavaScript Free, Previous: JavaScript Detection, Up: Top [Contents]