We will be sunsetting Advisor during Jan, 2026 and will instead be providing information in Snyk Security DB.

You can begin to take advantage of Snyk Security DB today for a unified, package-centric experience.

How to use deps-regex - 1 common examples

To help you get started, we’ve selected a few deps-regex 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 depcheck / depcheck / src / parser / coffee.js View on Github external
import DepsRegex from 'deps-regex';

const re = new DepsRegex({ matchES6: false });

export default function parseCoffeeScript(content) {
  return re.getDependencies(content);
}

deps-regex

Regular expression for matching javascript require/import statements.

MIT
Latest version published 4 years ago

Package Health Score

65 / 100
Full package analysis

Popular deps-regex functions