宽松型SPDX BSD-3-Clause
BSD 三条款许可证:许可证全文
以下是标准文本,除版权行里的占位符外一字未改。把 <year> 与 <copyright holders> 换成你的信息即可——不应做别的修改。
纯文本,含版权占位符
BSD 3-Clause License Copyright (c) <year>, <copyright holder> All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
怎么安装
- 存为
LICENSE放在仓库根目录,不加扩展名。GitHub、GitLab 与 npm 都会识别这个名字。 - 填好版权行首次发布年份与权利人。写成 2020–2026 这样的区间也可以。
- 随每份拷贝一起分发放进安装包、安装器或「关于」页面——至少有一份用户真能拿到。
- 在清单文件里引用package.json 写
"license": "BSD-3-Clause",pyproject.toml 写license = "BSD-3-Clause"。
改字就失效了
你可以在声明上方加自己的版权行,但不能重写授权段落、删减免责声明或去掉条款——许可证就是那段完整文本,不是它的摘要。