Skip to content Skip to sidebar Skip to footer
Showing posts with the label Module

How Do I Limit The Node Repl's Access To Internal Node Modules?

In a previous question I figured out how to eliminate unwanted global variables from the repl conte… Read more How Do I Limit The Node Repl's Access To Internal Node Modules?

Node.js Global Variable And Typescript

I need to have some strongly-typed global variables. As mentioned here: Extending TypeScript Global… Read more Node.js Global Variable And Typescript

Use A Typescript Module/class In The Browser And In The Server (node.js)

How would I use the same typescript class or module in a client side javascript file and in a serve… Read more Use A Typescript Module/class In The Browser And In The Server (node.js)

Set Prototype Of The Module In Javascript

I've seen in some tests that using prototype methods increases the performance of the code exec… Read more Set Prototype Of The Module In Javascript

Node_path Has No Effect On Module.paths Or Finding Modules

I'm trying to get node to recognize my grunt node module that is installed in a non-typical dir… Read more Node_path Has No Effect On Module.paths Or Finding Modules

Understanding Es6 Modules

Please can someone confirm my understanding of ES modules? In javascripts/bar.js: var foo = 2; exp… Read more Understanding Es6 Modules

Angularjs: [$injector:modulerr] Failed To Instantiate Module Ui-router

I'm a relative newbie in Angular and after following the tutorial I now want to build something… Read more Angularjs: [$injector:modulerr] Failed To Instantiate Module Ui-router

Generating Es6 Module Exports

I'm wanting to programmatically generate the exports for a module, is this possible in es6? Som… Read more Generating Es6 Module Exports