iter2file

0.0.8 • Public • Published

iter2file

安装

推荐用 @antfu/ni

ni -D iter2file

使用

→ test/index.coffee

#!/usr/bin/env coffee

import iter2file from 'iter2file'

iter2file(
  'out.txt'
  ->
    n = 0
    while ++n < 5
      yield n+'\n'
)

输出

→ out.txt

1
2
3
4

Readme

Keywords

none

Package Sidebar

Install

npm i iter2file

Weekly Downloads

0

Version

0.0.8

License

Apache-2.0

Unpacked Size

10.5 kB

Total Files

5

Last publish

Collaborators

  • i-user