🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

files-trace

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

files-trace

[![Greenkeeper badge](https://badges.greenkeeper.io/hisco/files-trace.svg)](https://greenkeeper.io/) [![NPM Version][npm-image]][npm-url] [![Build Status][travis-image]][travis-url] [![Test Coverage][coveralls-image]][coveralls-url]

0.0.1
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

Files trace

Greenkeeper badge NPM Version Build Status Test Coverage

Find your code dependencies, supports typescript, javascript and coffe script

Dependencies trace

A simple and naive approach to trace your code dependecies. It's very fast and uses only a single regex execution per file.

Motivation

Enable taking fast decisions based on files dependecy trees.

While the correct way to trace dependecies is by using some sort of AST analyzer this will require more computions then using a single regex execution per file.

files-trace was built for performance over accuracy and it's doing best effort to find all dependencies of your file. If you find scenarios that files-trace couldn't find your dependencies - open an issue in the github repo and I will do my best effort to fix it.

Use cases

The following use cases may be addressed with files-trace:

  • Enfore project specific policies, such as files from folder X cannot require files from folder Y
  • Check if file was changed including it's dependencies.
  • Any other use cases when you need to scan the files dependency tree fast and where accuracy is second citizen.

WIP - Work in progress

It's still at the very first stages, help is welcomed.

License

MIT

Keywords

regex

FAQs

Package last updated on 13 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts