Skip to content

Commit

Permalink
新增__header.js文件
Browse files Browse the repository at this point in the history
  • Loading branch information
h7lin committed Aug 31, 2017
1 parent b3bd4ef commit 5875cfe
Show file tree
Hide file tree
Showing 39 changed files with 368 additions and 0 deletions.
16 changes: 16 additions & 0 deletions addons/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = [
['addons_c_addons', 'C++ 插件'],
['addons_building', '构建'],
['addons_linking_to_node_js_own_dependencies', '链接到 Node.js 自有的依赖'],
['addons_loading_addons_using_require', '使用 require() 加载插件'],
['addons_native_abstractions_for_node_js', 'Node.js 的原生抽象'],
['addons_addon_examples', '插件示例'],
['addons_function_arguments', '函数的参数'],
['addons_callbacks', '回调'],
['addons_object_factory', '对象工厂'],
['addons_function_factory', '函数工厂'],
['addons_wrapping_c_objects', '包装 C++ 对象'],
['addons_factory_of_wrapped_objects', '包装对象的工厂'],
['addons_passing_wrapped_objects_around', '传递包装的对象'],
['addons_atexit_hooks', 'AtExit 钩子'],
]
4 changes: 4 additions & 0 deletions assert/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [
['assert_assert', 'assert - 断言'],
['assert_caveats','注意事项']
]
23 changes: 23 additions & 0 deletions buffer/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = [
['buffer_buffer', 'Buffer (缓冲)'],
['buffer_the_zero_fill_buffers_command_line_option', '<code>--zero-fill-buffers</code> 命令行选项'],
['buffer_what_makes_buffer_allocunsafe_and_buffer_allocunsafeslow_unsafe', '是什么令 <code>Buffer.allocUnsafe()</code> 和 <code>Buffer.allocUnsafeSlow()</code> 不安全?'],
['buffer_buffers_and_character_encodings', 'Buffer 与字符编码'],
['buffer_buffers_and_typedarray', 'Buffer 与 TypedArray'],
['buffer_buffers_and_es6_iteration', 'Buffer 与 ES6 迭代器'],
['buffer_class_buffer', 'Buffer 类'],
['buffer_class_method_buffer_alloc_size_fill_encoding', '类方法:Buffer.alloc(size[, fill[, encoding]])'],
['buffer_class_method_buffer_allocunsafe_size', '类方法:Buffer.allocUnsafe(size)'],
['buffer_class_method_buffer_allocunsafeslow_size', '类方法:Buffer.allocUnsafeSlow(size)'],
['buffer_class_method_buffer_bytelength_string_encoding', '类方法:Buffer.byteLength(string[, encoding])'],
['buffer_class_method_buffer_compare_buf1_buf2', '类方法:Buffer.compare(buf1, buf2)'],
['buffer_class_method_buffer_concat_list_totallength', '类方法:Buffer.concat(list[, totalLength])'],
['buffer_class_method_buffer_from_array', '类方法:Buffer.from(array)'],
['buffer_class_method_buffer_from_arraybuffer_byteoffset_length', '类方法:Buffer.from(arrayBuffer[, byteOffset[, length]])'],
['buffer_class_method_buffer_from_buffer', '类方法:Buffer.from(buffer)'],
['buffer_class_method_buffer_from_string_encoding', '类方法:Buffer.from(string[, encoding])'],
['buffer_class_method_buffer_isbuffer_obj', '类方法:Buffer.isBuffer(obj)'],
['buffer_class_method_buffer_isencoding_encoding', '类方法:Buffer.isEncoding(encoding)'],
['buffer_class_property_buffer_poolsize', '类属性:Buffer.poolSize'],
['buffer_class_slowbuffer', 'SlowBuffer 类'],
]
15 changes: 15 additions & 0 deletions child_process/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
module.exports = [
['child_process_child_process', 'child_process (子进程)'],
['child_process_asynchronous_process_creation', '创建异步进程'],
['child_process_spawning_bat_and_cmd_files_on_windows', '在 Windows 上衍生 <code>.bat</code> 和 <code>.cmd</code> 文件'],
['child_process_synchronous_process_creation', '创建同步进程'],
['child_process_class_childprocess', 'ChildProcess 类'],
['child_process_event_close', "'close' 事件"],
['child_process_event_disconnect', "'disconnect' 事件"],
['child_process_event_error', "'error' 事件"],
['child_process_event_exit', "'exit' 事件"],
['child_process_event_message', "'message' 事件"],
['child_process_example_sending_a_server_object', '例子:发送一个 server 对象'],
['child_process_example_sending_a_socket_object', '例子:发送一个 socket 对象'],
['child_process_maxbuffer_and_unicode', '<code>maxBuffer</code> 与 Unicode'],
]
6 changes: 6 additions & 0 deletions cli/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = [
['cli_command_line_options', '命令行选项'],
['cli_synopsis', '概要'],
['cli_options', '选项'],
['cli_environment_variables', '环境变量'],
]
3 changes: 3 additions & 0 deletions cluster/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = [
['cluster_cluster', 'cluster (集群)']
]
5 changes: 5 additions & 0 deletions console/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = [
['console_console', 'console (控制台)'],
['console_asynchronous_vs_synchronous_consoles', '异步与同步的控制台'],
['console_class_console', 'Console 类'],
]
3 changes: 3 additions & 0 deletions crypto/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = [
['crypto_crypto', 'crypto (加密)']
]
12 changes: 12 additions & 0 deletions debugger/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = [
['debugger_debugger', 'debugger 调试器'],
['debugger_watchers', '监视器'],
['debugger_command_reference', '命令参考手册'],
['debugger_stepping', '步进'],
['debugger_breakpoints', '断点'],
['debugger_information', '信息'],
['debugger_execution_control', '执行控制'],
['debugger_various', '杂项'],
['debugger_advanced_usage', '高级用法'],
['debugger_v8_inspector_integration_for_node_js', 'Node.js 的 V8 检查器集合']
];
3 changes: 3 additions & 0 deletions deprecations/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = [
['deprecations_deprecated_apis', '废弃的API'],
]
8 changes: 8 additions & 0 deletions dgram/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
module.exports = [
['dgram_udp_datagram_sockets', 'dgram (数据报)'],
['dgram_class_dgram_socket', 'dgram.Socket 类'],
['dgram_event_close', "'close' 事件"],
['dgram_event_error', "'error' 事件"],
['dgram_event_listening', "'listening' 事件"],
['dgram_event_message', "'message' 事件"],
]
5 changes: 5 additions & 0 deletions dns/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = [
['dns_dns', 'dns (域名服务器)'],
['dns_error_codes', '错误码'],
['dns_implementation_considerations', '实现上的注意事项'],
]
6 changes: 6 additions & 0 deletions documentation/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
module.exports = [
['documentation_about_this_documentation', '关于本文档'],
['documentation_stability_index', '稳定性指数'],
['documentation_json_output', 'JSON 输出'],
['documentation_syscalls_and_man_pages', '系统调用与帮助文档'],
]
14 changes: 14 additions & 0 deletions errors/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = [
['errors_errors', 'Error (错误)'],
['errors_error_propagation_and_interception', '错误的冒泡和捕获'],
['errors_node_js_style_callbacks', 'Node.js 风格的回调'],
['errors_class_error', 'Error 类'],
['errors_class_rangeerror', 'RangeError 类'],
['errors_class_referenceerror', 'ReferenceError 类'],
['errors_class_syntaxerror', 'SyntaxError 类'],
['errors_class_typeerror', 'TypeError 类'],
['errors_exceptions_vs_errors', '异常与错误'],
['errors_system_errors', '系统错误'],
['errors_class_system_error', '系统错误类'],
['errors_common_system_errors', '常见的系统错误'],
]
10 changes: 10 additions & 0 deletions events/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = [
['events_events', 'events (事件)'],
['events_passing_arguments_and_this_to_listeners', '给监听器传入参数与 <code>this</code>'],
['events_asynchronous_vs_synchronous', '异步与同步'],
['events_handling_events_only_once', '只处理事件一次'],
['events_error_events', '错误事件'],
['events_class_eventemitter', 'EventEmitter 类'],
['events_event_newlistener', "'newListener' 事件"],
['events_event_removelistener', "'removeListener' 事件"],
]
23 changes: 23 additions & 0 deletions fs/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = [
['fs_file_system', 'fs (文件系统)'],
['fs_class_fs_fswatcher', 'fs.FSWatcher 类'],
['fs_event_change', "'change' 事件"],
['fs_event_error', "'error' 事件"],
['fs_class_fs_readstream', 'fs.ReadStream 类'],
['fs_event_open', "'open' 事件"],
['fs_event_close', "'close' 事件"],
['fs_class_fs_stats', 'fs.Stats 类'],
['fs_stat_time_values', 'Stat 时间值'],
['fs_class_fs_writestream', 'fs.WriteStream 类'],
['fs_event_open_1', "'open' 事件"],
['fs_event_close_1', "'close' 事件"],
['fs_caveats', '说明'],
['fs_availability', '可用性'],
['fs_inodes', '索引节点'],
['fs_filename_argument', '文件名参数'],
['fs_fs_constants_1', 'fs 常量'],
['fs_file_access_constants', '文件访问常量'],
['fs_file_open_constants', '文件打开常量'],
['fs_file_type_constants', '文件类型常量'],
['fs_file_mode_constants', '文件模式常量']
]
4 changes: 4 additions & 0 deletions globals/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [
['globals_global_objects', 'global - 全局变量'],
['globals_class_buffer', 'Buffer'],
]
27 changes: 27 additions & 0 deletions http/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
module.exports = [
['http_http', 'http'],
['http_class_http_agent', 'http.Agent 类'],
['http_class_http_clientrequest', 'http.ClientRequest 类'],
['http_event_abort', "'abort' 事件"],
['http_event_aborted', "'aborted' 事件"],
['http_event_connect', "'connect' 事件"],
['http_event_continue', "'continue' 事件"],
['http_event_response', "'response' 事件"],
['http_event_socket', "'socket' 事件"],
['http_event_upgrade', "'upgrade' 事件"],
['http_class_http_server', 'http.Server 类'],
['http_event_checkcontinue', "'checkContinue' 事件"],
['http_event_checkexpectation', "'checkExpectation' 事件"],
['http_event_clienterror', "'clientError' 事件"],
['http_event_close', "'close' 事件"],
['http_event_connect_1', "'connect' 事件"],
['http_event_connection', "'connection' 事件"],
['http_event_request', "'request' 事件"],
['http_event_upgrade_1', "'upgrade' 事件"],
['http_class_http_serverresponse', 'http.ServerResponse 类'],
['http_event_close_1', "'close' 事件"],
['http_event_finish', "'finish' 事件"],
['http_class_http_incomingmessage', 'http.IncomingMessage 类'],
['http_event_aborted_1', "'aborted' 事件"],
['http_event_close_2', "'close' 事件"],
]
5 changes: 5 additions & 0 deletions https/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = [
['https_https', 'https'],
['https_class_https_agent', 'https.Agent 类'],
['https_class_https_server', 'https.Server 类'],
]
17 changes: 17 additions & 0 deletions modules/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
module.exports = [
['modules_modules', 'module (模块)'],
['modules_accessing_the_main_module', '访问主模块'],
['modules_addenda_package_manager_tips', '附录:包管理器的技巧'],
['modules_all_together', '总结'],
['modules_caching', '缓存'],
['modules_module_caching_caveats', '模块缓存的注意事项'],
['modules_core_modules', '核心模块'],
['modules_cycles', '循环'],
['modules_file_modules', '文件模块'],
['modules_folders_as_modules', '目录作为模块'],
['modules_loading_from_node_modules_folders', '从 <code>node_modules</code> 目录加载'],
['modules_loading_from_the_global_folders', '从全局目录加载'],
['modules_the_module_wrapper', '模块包装器'],
['modules_the_module_object', 'module 对象'],
['modules_exports_shortcut', 'exports 快捷方式'],
]
12 changes: 12 additions & 0 deletions n-api/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = [
['n_api_basic_n_api_data_types', '基本的 N-API 数据类型'],
['n_api_error_handling', '错误处理'],
['n_api_object_lifetime_management', '对象的生命周期管理'],
['n_api_module_registration', '模块注册'],
['n_api_working_with_javascript_values', '处理 JavaScript 值'],
['n_api_working_with_javascript_values_abstract_operations', '处理 JavaScript 值 - 抽象操作'],
['n_api_working_with_javascript_properties', '处理 JavaScript 属性'],
['n_api_working_with_javascript_functions', '处理 JavaScript 函数'],
['n_api_object_wrap', '对象封装'],
['n_api_asynchronous_operations', '异步操作'],
]
19 changes: 19 additions & 0 deletions net/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
module.exports = [
['net_net', 'net (网络)'],
['net_class_net_server', 'net.Server 类'],
['net_event_close', "'close' 事件"],
['net_event_connection', "'connection' 事件"],
['net_event_error', "'error' 事件"],
['net_event_listening', "'listening' 事件"],

['net_class_net_socket', 'net.Socket 类'],

['net_event_close_1', "'close' 事件"],
['net_event_connect', "'connect' 事件"],
['net_event_data', "'data' 事件"],
['net_event_drain', "'drain' 事件"],
['net_event_end', "'end' 事件"],
['net_event_error_1', "'error' 事件"],
['net_event_lookup', "'lookup' 事件"],
['net_event_timeout', "'timeout' 事件"],
]
9 changes: 9 additions & 0 deletions os/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = [
['os_os', 'os (操作系统)'],
['os_os_constants_1', 'OS 常量'],
['os_signal_constants', '信号常量'],
['os_error_constants', '错误常量'],
['os_posix_error_constants', 'POSIX 错误常量'],
['os_windows_specific_error_constants', 'Windows 系统特有的错误常量'],
['os_libuv_constants', 'libuv 常量']
]
4 changes: 4 additions & 0 deletions path/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [
['path_path', 'path (路径)'],
['path_windows_vs_posix', 'Windows 与 POSIX'],
]
3 changes: 3 additions & 0 deletions process/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = [
['process_process', 'process (进程)']
]
3 changes: 3 additions & 0 deletions querystring/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = [
['querystring_query_string', 'querystring - 查询字符串'],
]
14 changes: 14 additions & 0 deletions readline/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
module.exports = [
['readline_readline', 'readline (逐行读取)'],
['readline_class_interface', 'Interface 类'],
['readline_event_close', "'close' 事件"],
['readline_event_line', "'line' 事件"],
['readline_event_pause', "'pause' 事件"],
['readline_event_resume', "'resume' 事件"],
['readline_event_sigcont', "'SIGCONT' 事件"],
['readline_event_sigint', "'SIGINT' 事件"],
['readline_event_sigtstp', "'SIGTSTP' 事件"],
['readline_use_of_the_completer_function', '<code>completer</code> 函数的使用'],
['readline_example_tiny_cli', '例子:简单的命令行界面'],
['readline_example_read_file_stream_line_by_line', '例子:逐行地读取文件流'],
];
21 changes: 21 additions & 0 deletions repl/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
module.exports = [
['repl_repl', 'repl (交互式解释器)'],
['repl_design_and_features', '设计与特性'],
['repl_commands_and_special_keys', '命令与特殊键'],
['repl_default_evaluation', '默认的解释器'],
['repl_javascript_expressions', 'JavaScript 表达式'],
['repl_global_and_local_scope', '全局作用域与局部作用域'],
['repl_accessing_core_node_js_modules', '访问 Node.js 核心模块'],
['repl_assignment_of_the_underscore_variable', '<code>_</code>(下划线)变量的赋值'],
['repl_custom_evaluation_functions', '自定义的解释函数'],
['repl_recoverable_errors', '可恢复的错误'],
['repl_customizing_repl_output', '自定义 REPL 输出'],
['repl_class_replserver', 'REPLServer 类'],
['repl_event_exit', "'exit' 事件"],
['repl_event_reset', "'reset' 事件"],
['repl_the_node_js_repl', 'Node.js 的 REPL'],
['repl_environment_variable_options', '环境变量选项'],
['repl_persistent_history', '历史记录'],
['repl_using_the_node_js_repl_with_advanced_line_editors', '在高级的行编辑器中使用 Node.js REPL'],
['repl_starting_multiple_repl_instances_against_a_single_running_instance', '在一个 Node.js 实例中启动多个 REPL 实例'],
]
31 changes: 31 additions & 0 deletions stream/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
module.exports = [
['stream_stream', 'stream (流)'],
['stream_organization_of_this_document', '本文档的组织'],
['stream_types_of_streams', '流的类型'],
['stream_object_mode', '对象模式'],
['stream_buffering', '缓冲'],
['stream_api_for_stream_consumers', '流消费者的 API'],
['stream_writable_streams', '可写流'],
['stream_class_stream_writable', 'stream.Writable 类'],
['stream_event_close', "'close' 事件"],
['stream_event_drain', "'drain' 事件"],
['stream_event_error', "'error' 事件"],
['stream_event_finish', "'finish' 事件"],
['stream_event_pipe', "'pipe' 事件"],
['stream_event_unpipe', "'unpipe' 事件"],
['stream_readable_streams', '可读流'],
['stream_two_modes', '两种模式'],
['stream_three_states', '三种状态'],
['stream_choose_one', '选择一种'],
['stream_class_stream_readable', 'stream.Readable 类'],
['stream_event_close_1', "'close' 事件"],
['stream_event_data', "'data' 事件"],
['stream_event_end', "'end' 事件"],
['stream_event_error_1', "'error' 事件"],
['stream_event_readable', "'readable' 事件"],
['stream_duplex_and_transform_streams', 'Duplex 流与 Transform 流'],
['stream_class_stream_duplex', 'stream.Duplex 类'],
['stream_class_stream_transform', 'stream.Transform 类'],
['stream_an_example_writable_stream', '一个可写流的例子'],
['stream_an_example_counting_stream', '一个数流的例子'],
]
4 changes: 4 additions & 0 deletions string_decoder/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [
['string_decoder_string_decoder', 'string_decoder - 字符串解码器'],
['string_decoder_class_new_stringdecoder_encoding', 'new StringDecoder([encoding])'],
]
4 changes: 4 additions & 0 deletions synopsis/__header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [
['synopsis_usage', '用法'],
['synopsis_example', '例子'],
]
Loading

0 comments on commit 5875cfe

Please sign in to comment.