0.0.7 • Published 2 years ago

@iuser/walk v0.0.7

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
2 years ago

@iuser/walk

walk directory recursive

安装

推荐用 @antfu/ni

ni -D @iuser/walk

使用

→ test/index.coffee

#!/usr/bin/env coffee

import walk, {walkRel} from '@iuser/walk'
import {dirname} from 'path'

{pathname} = new URL(import.meta.url)

dir = dirname dirname pathname

console.log dir

console.log '> full path'
for await i from walk(dir)
  console.log i

console.log '\n> relative path'
for await i from walkRel(
  dir
  (i)=>
    i == 'src'
)
  console.log '\t',i
0.0.5

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.3

3 years ago

0.0.4

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago