nodejscn / node-api-cn Goto Github PK
View Code? Open in Web Editor NEWNode.js API 中文文档
Home Page: http://nodejs.cn/api/
License: Creative Commons Attribution 4.0 International
Node.js API 中文文档
Home Page: http://nodejs.cn/api/
License: Creative Commons Attribution 4.0 International
有提供离线包的下载链接吗?
文档页的API快速搜索,输入内容,按回车无任何效果.Chrome浏览器
比较奇怪很多开源框架的文档都是md,这里边是怎么做的转化,从md-html
是时候翻译8。0的api文档了
const assert = require('assert');
// 生成一个 AssertionError,用于比较错误信息:
const { message } = new assert.AssertionError({
actual: 1,
expected: 2,
operator: 'strictEqual'
});
// 验证输出的错误:
try {
assert.strictEqual(1, 2);
} catch (err) {
assert(err instanceof assert.AssertionError);
assert.strictEqual(err.message, message);
assert.strictEqual(err.name, 'AssertionError [ERR_ASSERTION]');
assert.strictEqual(err.actual, 1);
assert.strictEqual(err.expected, 2);
assert.strictEqual(err.code, 'ERR_ASSERTION');
assert.strictEqual(err.operator, 'strictEqual');
assert.strictEqual(err.generatedMessage, true);
}
// 生成一个 AssertionError,用于比较错误信息:
const { message } = new assert.AssertionError({
actual: 1,
expected: 2,
operator: '==='
});
// 验证输出的错误:
try {
assert.strictEqual(1, 2);
} catch (err) {
assert(err instanceof assert.AssertionError);
assert.strictEqual(err.message, message);
assert.strictEqual(err.name, 'AssertionError [ERR_ASSERTION]');
assert.strictEqual(err.actual, 1);
assert.strictEqual(err.expected, 2);
assert.strictEqual(err.code, 'ERR_ASSERTION');
assert.strictEqual(err.operator, '===');
assert.strictEqual(err.generatedMessage, true);
}
这样子就没事了
http://nodejs.cn/api
错误码:ERR_CONNECTION_ABORTED
在Windows7安装的node-v10.14.1-x64版本的nodejs,在使用path.join拼接路径时出现问题,如下例所示:
输入 path.join('/foo', 'bar', 'baz/asdf', 'quux', '..');
官网上显示的返回的结果是:
// : '/foo/bar/baz/asdf'
但是实际操作过程中,返回的结果却是如下所示
// : \foo\bar\baz\asdf
开发环境不能联网, 想要查阅文档只能通过搭建本地的服务器,请问如何配置?
“大多数 fs 函数可以省略回调函数,……”
可以省略的是回调函数的参数,而不是回调函数。英文原文还有一层意思是并不推荐这样做,也可以考虑加上。
我在做一个以JavaScript为语言的编程软件的文档,想直接使用Node.js文档的样式。
在node的github上找到一个doc-tool但没有成功使用。
我猜这个项目应该有相应的工具和模板来生成网页。请问这些开源或者提供吗?
谢谢~
辛苦了.
I found that docs was updated but website was not updated to time. How and when the website update? Is website updated manually on server? If this, I think webhook is a good idea.
没有为什么,就是高兴!
在下nodejs新手,想在本地搭建一个api文档服务器,可否提供相关脚本或告知如何搭建,谢谢
发现有些没有翻译。
想参与,但奈何我这只过了四级的英语,所以自己fork了一个分支来try一下
fs模块有不少错别字,看到的大神修改修改
现在的实现是一个连接的跳转,在查阅一些原文的时候,页面会直接跳走,不方便比对查看理解原意.
There is minor error in this statement:
napi_status status = napi_get_element(e object, i, &result);
There should be a comma after e or env. The statement should read:
napi_status status = napi_get_element(env, object, i, &result);
nodejs 在不停的更新,每个版本的nodejs 的文档应该也是不同的;但是该文档始终是最新的文档;并不能很好的帮助开发者文档性的查找切换;违背了作为翻译文档的一个初衷吧。nodejs官方是可以做到不同版本的文档的;项目内也是有不同的版本提交的;希望增加一个可以切换版本的文档功能;谢谢;
作为开发者,虽然在 http://nodejs.cn/ 没有版本,此项目也可以公布一些如何由开发者自由构建,生成由开发者想要的版本;这样我想很多人都有此想法的;谢谢!
这是在下的一些想法和困惑,应该也是普通开发者中的一些困惑;希望重视一下;
Accessing the main module 到 缓存 之间的部分没有正确展示,感觉是 markdown 格式不对导致解析错误。
module.exports = class Square {
constructor(width) {
this.width = width;
}
area() {
return this.width ** 2;
}
};
this 为undefined 望改正
注意到stream这一节还没有翻译,正打算进行翻译
可以大概介绍一下,github仓库的md是怎么样构建成网站的么
你好,我已经加了你的QQ,有事情咨询,我QQ号是249806703
有时候需要查询下历史的文档
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.