You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>You can use any text to identify the license you are using. If your code uses a standard open-source license, consider using the appropriate identifier from
43
43
the <ahref="https://spdx.org/licenses/">Software Package Data Exchange (SPDX)
44
44
License List</a>.</p>
45
+
<p>Some JavaScript processing tools, such as Google's Closure Compiler, will automatically preserve any JSDoc comment that includes a <code>@license</code> tag. If you are using one of these tools, you may wish to add a standalone JSDoc comment that includes the <code>@license</code> tag, along with the entire
46
+
text of the license, so that the license text will be included in generated JavaScript files.</p>
45
47
<h2id="examples">Examples</h2>
46
48
<figure>
47
49
<figcaption>A module that is distributed under the Apache License 2.0</figcaption><preclass="prettyprint lang-js"><code>/**
48
50
* Utility functions for the foo package.
49
51
* @module foo/util
50
52
* @license Apache-2.0
51
53
*/
54
+
</code></pre>
55
+
</figure>
56
+
<figure>
57
+
<figcaption>A standalone JSDoc comment with the complete MIT license</figcaption><preclass="prettyprint lang-js"><code>/**
58
+
* @license
59
+
* Copyright (c) 2015 Example Corporation Inc.
60
+
*
61
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
62
+
* of this software and associated documentation files (the "Software"), to deal
63
+
* in the Software without restriction, including without limitation the rights
0 commit comments