flora-colossus
Walks your node_modules tree
Last updated a year ago by marshallofsound .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ npm install flora-colossus 
SYNC missed versions from official npm registry.

Flora Colossus

Walk your node_modules tree

Installation

npm i --save-dev flora-colossus

API

Enum: DepType

import { DepType } from 'flora-colossus';

// DepType.PROD --> Production dependency
// DepType.OPTIONAL --> Optional dependency
// DepType.DEV --> Development dependency
// DepType.DEV_OPTIONAL --> Optional dependency of a development dependency
// DepType.ROOT --> The root module

Class: Walker

import { Walker } from 'flora-colossus';

// modulePath is the root folder of your module
const walker = new Walker(modulePath);

walker.walkTree()

Returns Promise<Module[]>

Will walk your entire node_modules tree reporting back an array of "modules", each module has a "path", "name" and "depType". See the typescript definition file for more information.

Current Tags

  • 3.0.2                                ...           latest (a year ago)

8 Versions

  • 3.0.2                                ...           a year ago
  • 3.0.1                                ...           a year ago
  • 2.0.0                                ...           4 years ago
  • 1.0.1                                ...           7 years ago
  • 1.0.0                                ...           9 years ago
  • 0.0.3                                ...           9 years ago
  • 0.0.2                                ...           9 years ago
  • 0.0.1                                ...           9 years ago
Maintainers (1)
Downloads
Total 22
Today 0
This Week 0
This Month 9
Last Day 0
Last Week 0
Last Month 2
Dependencies (1)
Dev Dependencies (7)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE