How to use filing-cabinet - 5 common examples

To help you get started, we’ve selected a few filing-cabinet examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wix / okidoc / packages / okidoc-md / src / buildDocumentationSource / buildDocumentationSourceAST / buildDependenciesTree.js View on Github external
function resolveDependencyPath({ dependency, entryPath, entryAST }) {
  const config = {
    filename: entryPath,
    directory: process.cwd(),
    ast: entryAST,
  };

  return (
    cabinet({ ...config, partial: dependency }) ||
    cabinet({ ...config, partial: dependency + '/index' })
  );
}
github wix / okidoc / packages / okidoc-md / src / buildDocumentationSource / buildDocumentationSourceAST / buildDependenciesTree.js View on Github external
function resolveDependencyPath({ dependency, entryPath, entryAST }) {
  const config = {
    filename: entryPath,
    directory: process.cwd(),
    ast: entryAST,
  };

  return (
    cabinet({ ...config, partial: dependency }) ||
    cabinet({ ...config, partial: dependency + '/index' })
  );
}
github wix / okidoc / packages / okidoc-md / src / utils / traverseEntries.js View on Github external
function resolveDependencyPath({ dependency, entryPath, entryAST }) {
  const config = {
    filename: entryPath,
    directory: process.cwd(),
    ast: entryAST,
  };

  return (
    cabinet({ ...config, partial: dependency }) ||
    cabinet({ ...config, partial: dependency + '/index' })
  );
}
github wix / okidoc / packages / okidoc-md / src / utils / traverseEntries.js View on Github external
function resolveDependencyPath({ dependency, entryPath, entryAST }) {
  const config = {
    filename: entryPath,
    directory: process.cwd(),
    ast: entryAST,
  };

  return (
    cabinet({ ...config, partial: dependency }) ||
    cabinet({ ...config, partial: dependency + '/index' })
  );
}
github wix / okidoc / packages / okidoc-md / src / utils / traverseEntries.js View on Github external
function resolveDependencyPath({ dependency, entryPath, entryAST }) {
  const config = {
    filename: entryPath,
    directory: process.cwd(),
    ast: entryAST,
  };

  return (
    cabinet({ ...config, partial: dependency }) ||
    cabinet({ ...config, partial: dependency + '/index' })
  );
}

filing-cabinet

Find files based on partial paths

MIT
Latest version published 8 months ago

Package Health Score

73 / 100
Full package analysis

Popular filing-cabinet functions