Ninjas Practicing Multidimensionality

    @rmw/walk

    0.0.7 • Public • Published

    @rmw/walk

    walk directory recursive

    安装

    yarn add @rmw/walk
    

    或者

    npm install @rmw/walk
    

    使用

    #!/usr/bin/env coffee
    
    import walk, {walkRel} from '@rmw/walk'
    import {dirname} from 'path'
    
    {pathname} = new URL(import.meta.url)
    
    dir = 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)
      console.log i
    

    关于

    本项目隶属于人民网络(rmw.link) 代码计划。

    人民网络

    Keywords

    none

    Install

    npm i @rmw/walk

    DownloadsWeekly Downloads

    7

    Version

    0.0.7

    License

    AGPL

    Unpacked Size

    12.5 kB

    Total Files

    5

    Last publish

    Collaborators

    • gcxfd