Socket
Book a DemoInstallSign in
Socket

require_client

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

require_client

a meaningful node require for JS client side

latest
Source
npmnpm
Version
0.1.4
Version published
Maintainers
1
Created
Source

require_client

node require for JS client side

why

Here you find everything you need to know behind this project.

how

Install the node binary through [sudo] npm install require_client -g.

Create a portable require file via require_client ~/path/jsfolder [~/path/require.js] [--yui] [--watch].

If no third argument is specified, the build will be inside the build folder of the require_client installation.

If --yui is not an argument, UglifyJS will be used as default.

If --watch has been specified, the process keep building automatically per each file change. This is very handy if you want to forget about building before each test.

If --nostrict is an argument, "use strict"; directive will be disabled for all modules.

update

it's now possible to create a require.js script able to parse itself ... e.g.

<script class="exec" src="js/require.js">
  require("my-module").init();
</script>

This makes inclusion of built requires easier to bootstrap.

multiple projects

It is now possible to create many build with require() and place all of them in parallel. The first require that will be available in the global scope will be used as parser, all others will simply enrich the list of available modules.

license

Mit Style

Keywords

node

FAQs

Package last updated on 14 Nov 2012

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