Code Monkey home page Code Monkey logo

gimme-deps's Introduction

gimme-deps

If you want to know what files are required from node module or just simple file, their absolute file pahts, their package names and another metadata from package.json`s just make:

npm install gimme-deps

Usage

gimme-deps 'path to some file or module', (err, info) ->
	# processing info data

And thats it, no wrapping, no bundling only required modules and their metadata. You can process them as you want - bundle, wrapp, analize e.t.c.

info structure

  • info.files - flat structure of all files that were resolved from module and from it's dependencies.
info.files = [
	# file 
	{
	  path: <path to module file (relative to current path)>
	  callee: <how this file was required from the module sources>
	},
	...
]
  • info.module - returns module name
  • info.main_file - absolute path to module main file
  • info.module_path - absolute path to module folder
  • info.package_json - module package.json object

Bitdeli Badge

gimme-deps's People

Contributors

alexmost avatar bitdeli-chef avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.