0.0.8 • Published 4 years ago

@hon2a/walk-sync v0.0.8

Weekly downloads
187
License
MIT
Repository
github
Last release
4 years ago

walk-sync

Super simple generator that returns absolute paths of all files in a folder and sub-folders

Use

npm install @hon2a/walk-sync
import { walkSync } from '@hon2a/walk-sync'

for (const path of walkSync('/path/to/folder')) {
  console.log(path)
}

Note that walkSync is a generator function, so it needs to be used through the iterator.

Development

Install

Install dependencies using:

npm install

Develop

After you modify sources, run the following (or set up your IDE to do it for you):

  • format the code using npm run format
  • lint it using npm run lint
  • test it using npm test

and fix the errors, if there are any.

Publish

Publishing is done in two steps:

  1. Create a new version tag and push it to the repository:
    npm version <patch|minor|major>
    git push --follow-tags
  2. Build and publish the new version as a npm package:
    npm publish --access public
0.0.8

4 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

6 years ago