npm.io
0.1.5 • Published yesterday

depshot

Licence
MIT
Version
0.1.5
Deps
0
Size
6 kB
Vulns
0
Weekly
0
Stars
6

depshot

Gathers deps snapshot by analyzing sources

lcov npm

Motivation

Combine depseek and fast-glob to implement efficient dep scanner.

Status

Blueprint

Usage

import { depshot } from 'depshot'

const shot = depshot({
  entryPoints: ['build/index.js', 'build/**/*.mjs'],
  exclude: ['build/interface.js']
})

// gives smth like
{
  'build/index.js': [
    {
      index: 22,
      raw: './foo',
      resolved: 'build/foo/index.mjs'
    }
  ],
  //...
}

License

MIT

Keywords