Skip to Content
Node与Express开发(第2版)
book

Node与Express开发(第2版)

by Ethan Brown
June 2021
Intermediate to advanced
290 pages
9h 21m
Chinese
Posts & Telecom Press
Content preview from Node与Express开发(第2版)
Express
是什么
|
7
者,我认为进行限制是有害无益的。
把所有这些技术捆绑到一起的,就是
JavaScript
。所以为了更具包容性
,我会把它叫作
JavaScript
技术栈
。就本书来说,它指的是
Node
、
Express
和
MongoDB
(第
13
章还有关
系型数据库的示例)。
1.7
 开源协议
开发
Node
应用的时候,你可能会发现,自己必须要比以前更加留心开源协议(我当然也
是 )。
Node
生态系统的一个美
妙之处就是有大量的包可用。可是,每个包都有自己的授权
方式,更麻烦的是,每个包都可能依赖一些其他的包,这意味着要理解应用各个部分的授
权方式会十分困难。
好在有一些好消息。
MIT
协议是
Node
包用得最多的协议之一
。这是一个非常宽松的协议,
你几乎可以做任何事,包括把这个包用到闭源软件里。不过你不能设想你用的每个包都采
用
MIT
协议。
在
npm
中有好几个包,可以尝试找出你的项目中每个依赖的授权方式。请在
npm
中搜索
nlf
或
license-report
。
除了
MIT
这个最常见的协议,你可能还会遇到以下开源协议。
GNU 通用公共许可(
GPL)
GPL
是一个很受欢迎的开源协议
,为了保持软件的开源,它经过了精心设计。这意味
着如果你在项目中使用了
GPL
授权的代码
,你的项目必须也要以
GPL
来授权。自然,
你的项目就不能是闭源的。
Apache 2.0
像
MIT
一样
,这个协议允许你的项目采用一种不同的协议,包括闭源的协议。不过对于
那些采用
Apache 2.0
许可的组件,你必须在项目协议中把它们的授权声明都包含进来。
BSD ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.

Read now

Unlock full access

More than 5,000 organizations count on O’Reilly

AirBnbBlueOriginElectronic ArtsHomeDepotNasdaqRakutenTata Consultancy Services

QuotationMarkO’Reilly covers everything we've got, with content to help us build a world-class technology community, upgrade the capabilities and competencies of our teams, and improve overall team performance as well as their engagement.
Julian F.
Head of Cybersecurity
QuotationMarkI wanted to learn C and C++, but it didn't click for me until I picked up an O'Reilly book. When I went on the O’Reilly platform, I was astonished to find all the books there, plus live events and sandboxes so you could play around with the technology.
Addison B.
Field Engineer
QuotationMarkI’ve been on the O’Reilly platform for more than eight years. I use a couple of learning platforms, but I'm on O'Reilly more than anybody else. When you're there, you start learning. I'm never disappointed.
Amir M.
Data Platform Tech Lead
QuotationMarkI'm always learning. So when I got on to O'Reilly, I was like a kid in a candy store. There are playlists. There are answers. There's on-demand training. It's worth its weight in gold, in terms of what it allows me to do.
Mark W.
Embedded Software Engineer

You might also like

面向对象的思考过程(原书第5版)

面向对象的思考过程(原书第5版)

马特 魏斯费尔德
精通模块化JavaScript

精通模块化JavaScript

Nicolás Bevacqua

Publisher Resources

ISBN: 9787115565099