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

mini-file

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mini-file

mini-route static file handler extension.

latest
Source
npmnpm
Version
0.0.19
Version published
Weekly downloads
20
Maintainers
1
Weekly downloads
 
Created
Source

mini-file

mini-route static file handler extension.

Example:

var http = require('http');
var MiniRoute = require('mini-route');
var miniFile = require('mini-file');

var server = http.createServer();
var router = new MiniRoute(server);

miniFile(router, __dirname + '/public');

miniFile(router, __dirname + '/bower_components', '/support/'); // don't forget the extra slash at the end
// the above serves the 'bower_components' folder on '/support/'

server.listen(8080);

This can also be used with Express:

var miniFile = require('mini-file');
var app = require('express')();

miniFile(app, __dirname + '/public');

app.listen(8080);

Keywords

mini-file

FAQs

Package last updated on 23 Apr 2016

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