iterable string interceptor:拦截可迭代的字符串 模板的主干 源码
迭代字符串拦截器 拦截可迭代字符串-模板的主干 import { iterableStringInterceptor } from "iterable-string-interceptor" ; import { createReadStream } from "fs" ; // double values inside {{}} // {{7}} -> 14 for await ( const chunk of iterableStringInterceptor ( createReadStream ( 'aFile' , { encoding : "utf8" } ) , async * ( expression ) => { yield expression * 2 ; } ) ) { process . stdout . write ( chunk ) ; } import
文件列表
iterable-string-interceptor-master.zip
(预估有个17文件)
iterable-string-interceptor-master
.gitignore
60B
package.json
1KB
src
iterable-string-interceptor.mjs
3KB
LICENSE
1KB
.github
pr_labeler.yml
402B
workflows
ci.yml
2KB
暂无评论