文件操作 - README.md
返回文件管理
返回主菜单
删除本文件
文件: /node_modules/truncate-utf8-bytes/README.md
编辑文件内容
# truncate-utf8-bytes [](http://travis-ci.org/parshap/truncate-utf8-bytes) Truncate a string to the given length in bytes. Correctly handles multi-byte characters and surrogate pairs. A browser implementation that doesn't use `Buffer.byteLength` is provided to minimize build size. ## Example ```js var truncate = require("truncate-utf8-bytes") var str = "a☃" // a = 1 byte, ☃ = 3 bytes console.log(truncate(str, 2)) // -> "a" ``` ## API ### `var truncate = require("truncate-utf8-bytes")` *When using browserify or webpack*, this automatically resolves to an implementation that does not use `Buffer.byteLength`. ### `truncate(string, length)` Returns `string` truncated to at most `length` bytes in length.
修改文件时间
将文件时间修改为当前时间的前一年
删除文件