Metaz js
Node.js Metaprogramming library
npm install metaz
// library.js'use strict'var metaz = // Invalidate require cache on each require to get the parent againdelete requirecache__filename var meta = metaz // Do anything you want with the source,// e.g. parse the AST for interesting contentvar source = metaz meta { return source} meta { return 100} // Overrides the module with your new exportsmetaz