mirror of
https://github.com/wahyd4/daily.git
synced 2026-08-09 05:16:16 +10:00
完善代码片段
This commit is contained in:
+6
-6
@@ -570,22 +570,22 @@
|
||||
|
||||
## Node.js
|
||||
1. [hashNode](https://www.30secondsofcode.org/js/s/hash-node)(使用SHA-256算法为值创建哈希并返回一个 Promise 对象)
|
||||
2. [isDuplexStream](https://www.30secondsofcode.org/js/s/is-duplex-stream)(检查给定的参数是否为双工(可读和可写)流)
|
||||
3. [isWritableStream](https://www.30secondsofcode.org/js/s/is-writable-stream)(检查给定的参数是否为可写流)
|
||||
4. [isReadableStream](https://www.30secondsofcode.org/js/s/is-readable-stream)(检查给定参数是否为可读流)
|
||||
5. [readFileLines](https://www.30secondsofcode.org/js/s/read-file-lines)(返回指定文件中的行数组)
|
||||
6. [JSONToFile](https://www.30secondsofcode.org/js/s/json-to-file)(将JSON对象写入文件)
|
||||
7. [Tip: 使用Chrome开发人员工具调试 Node.js](https://www.30secondsofcode.org/blog/s/nodejs-chrome-debugging)
|
||||
8. [colorize](https://www.30secondsofcode.org/js/s/colorize)(在文本中添加特殊字符以在控制台中以彩色打印(与console.log()组合))
|
||||
9. [isNode](https://www.30secondsofcode.org/js/s/is-node)(确定当前运行时环境是否为Node.js)
|
||||
10. [isStream](https://www.30secondsofcode.org/js/s/is-stream)(检查给定参数是否为流)
|
||||
11. [hasFlags](https://www.30secondsofcode.org/js/s/has-flags)(检查当前进程的参数是否包含指定的标志)
|
||||
12. [btoa](https://www.30secondsofcode.org/js/s/btoa)(从String对象创建一个base-64编码的ASCII字符串,其中字符串中的每个字符都被视为二进制数据的字节)
|
||||
13. [untildify](https://www.30secondsofcode.org/js/s/untildify)(将波浪号路径转换为绝对路径)
|
||||
11. [hasFlags](https://www.30secondsofcode.org/js/s/has-flags)(检查当前进程的参数是否包含指定的标志)
|
||||
14. [isTravisCI](https://www.30secondsofcode.org/js/s/is-travis-ci)(检查当前环境是否为Travis CI)
|
||||
15. [atob](https://www.30secondsofcode.org/js/s/atob)(解码已使用base-64编码的数据字符串)
|
||||
16. [requireUncached](https://www.30secondsofcode.org/js/s/require-uncached)(从缓存中删除模块后加载模块(如果存在))
|
||||
17. [createDirIfNotExists](https://www.30secondsofcode.org/js/s/create-dir-if-not-exists)(创建目录(如果不存在))
|
||||
2. [isDuplexStream](https://www.30secondsofcode.org/js/s/is-duplex-stream)(检查给定的参数是否为双工(可读和可写)流)
|
||||
3. [isWritableStream](https://www.30secondsofcode.org/js/s/is-writable-stream)(检查给定的参数是否为可写流)
|
||||
4. [isReadableStream](https://www.30secondsofcode.org/js/s/is-readable-stream)(检查给定参数是否为可读流)
|
||||
9. [isNode](https://www.30secondsofcode.org/js/s/is-node)(确定当前运行时环境是否为Node.js)
|
||||
10. [isStream](https://www.30secondsofcode.org/js/s/is-stream)(检查给定参数是否为流)
|
||||
|
||||
## React
|
||||
#### 1)Hooks
|
||||
|
||||
Reference in New Issue
Block a user