serve-spm
SPM middleware for debug.
Last updated 4 years ago by sorrycc .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install serve-spm 
SYNC missed versions from official npm registry.

Serve SPM

NPM version Build Status Coverage Status NPM downloads

Middleware for spm debug, support connect, express and koa.

Usage

with express:

var serveSPM = require('serve-spm');
require('express')().use(serveSPM(pkgRoot, {
  log: true
}));

with koa:

var serveSPM = require('serve-spm').koa;
require('koa')().use(serveSPM(pkgRoot, {
  log: true
}));

Options

log

Enable log for requests, default false.

paths

Map pathname for debug. e.g. paths: [['/a/b/c/', '']]

cache

Enable 304 cache.

base

Set seajs's base.

LICENSE

Copyright (c) 2014 sorrycc. Licensed under the MIT license.

Current Tags

  • 1.0.0                                ...           latest (4 years ago)

58 Versions

  • 1.0.0                                ...           4 years ago
  • 0.15.0                                ...           4 years ago
  • 0.14.1                                ...           5 years ago
  • 0.14.0                                ...           5 years ago
  • 0.13.2                                ...           5 years ago
  • 0.13.1                                ...           5 years ago
  • 0.13.0                                ...           5 years ago
  • 0.12.0                                ...           5 years ago
  • 0.11.0                                ...           5 years ago
  • 0.10.2                                ...           5 years ago
  • 0.10.1                                ...           5 years ago
  • 0.10.0                                ...           5 years ago
  • 0.9.1                                ...           5 years ago
  • 0.9.0                                ...           5 years ago
  • 0.8.1                                ...           5 years ago
  • 0.8.0                                ...           5 years ago
  • 0.7.15                                ...           5 years ago
  • 0.7.14                                ...           5 years ago
  • 0.7.13                                ...           5 years ago
  • 0.7.12                                ...           5 years ago
  • 0.7.11                                ...           5 years ago
  • 0.7.10                                ...           5 years ago
  • 0.7.9                                ...           5 years ago
  • 0.7.8                                ...           5 years ago
  • 0.7.7                                ...           5 years ago
  • 0.7.5                                ...           5 years ago
  • 0.7.4                                ...           5 years ago
  • 0.7.3                                ...           5 years ago
  • 0.7.2                                ...           5 years ago
  • 0.7.1                                ...           5 years ago
  • 0.7.0                                ...           5 years ago
  • 0.6.0                                ...           5 years ago
  • 0.5.11                                ...           5 years ago
  • 0.5.10                                ...           5 years ago
  • 0.5.8                                ...           5 years ago
  • 0.5.7                                ...           5 years ago
  • 0.5.6                                ...           5 years ago
  • 0.5.5                                ...           5 years ago
  • 0.5.4                                ...           5 years ago
  • 0.5.3                                ...           5 years ago
  • 0.5.2                                ...           5 years ago
  • 0.5.1                                ...           5 years ago
  • 0.5.0                                ...           5 years ago
  • 0.4.0                                ...           5 years ago
  • 0.3.11                                ...           5 years ago
  • 0.3.10                                ...           5 years ago
  • 0.3.9                                ...           5 years ago
  • 0.3.8                                ...           5 years ago
  • 0.3.7                                ...           5 years ago
  • 0.3.6                                ...           5 years ago
  • 0.3.5                                ...           5 years ago
  • 0.3.4                                ...           5 years ago
  • 0.3.3                                ...           5 years ago
  • 0.3.2                                ...           5 years ago
  • 0.3.1                                ...           5 years ago
  • 0.3.0                                ...           5 years ago
  • 0.2.0                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 18
Dependencies (22)
Dev Dependencies (10)
Dependents (4)

Copyright 2014 - 2016 © taobao.org |