New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

koa-modularize

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

koa-modularize

koa middleware for transforming commonjs file into browser module format

latest
Source
npmnpm
Version
3.6.9
Version published
Maintainers
1
Created
Source

koa-modularize

koa middleware for transforming node_modules js file into browser module format and imported css path to absolute node_modules path

NPM version gemnasium deps node version npm download

Usage

var koa = require('koa');
var modularize = require('koa-modularize');
app.use(modularize());
app.listen(8000);

Example

npm start

open http://localhost:9999/test/test.html

API

GeneratorFunction modularize(dir:String, option: Object)

dir

file directory code belongs in. defaults to process.cwd()

Option details

nametypedescription
option.nowrapFunctionwhether wrap code with define and transform package into absolute url for browser loader library
option.nextFunctionrequest handler will call this function to judge whether yield next

Keywords

koa

FAQs

Package last updated on 14 Jul 2015

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