Skip to content
This repository has been archived by the owner on Feb 6, 2018. It is now read-only.

Commit

Permalink
fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
blond committed Apr 14, 2016
1 parent a83a9cc commit 9a2e05f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,12 @@ const walkers = require('./walkers');
/**
* Scans levels in file system.
*
* If file or directory is valid BEM entity then will be called `add` with info about this file.
* If file or directory is valid BEM entity then `add` will be called with info about this file.
*
* @param {string[]} levels The paths to levels.
* @param {object} options The options.
* @param {object} options.levels The level map. The key is path to level, the value is options for this level.
* @param {object} options.levels The level map. A key is path to a level,
* a value is an options object for this level.
* @param {object} options.defaults The options for levels by default.
* @param {object} options.defaults.naming Any options for `bem-naming`.
* @param {string} options.defaults.scheme The name of level scheme. Available values: `flat` or `nested`.
Expand Down
4 changes: 2 additions & 2 deletions lib/walkers/nested.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ class LevelWalker {
* Calls specified callback for each file or directory in specified directory.
*
* Each item is object with the following fields:
* * {string} path — the absoulte path to file or directory.
* * {string} path — the absolute path to file or directory.
* * {string} basename — the name of file or directory (the last portion of a path).
* * {string} stem - the name without tech name (complex extention).
* * {string} tech - the complex extention for the file or directory path.
*
* @param {string} dirname — the path to directory.
* @param {function} fn — the function that called on each file or directory.
* @param {function} fn — the function that is called on each file or directory.
* @param {function} callback — the callback function.
*/
_eachDirItem (dirname, fn, callback) {
Expand Down

0 comments on commit 9a2e05f

Please sign in to comment.