Socket
Socket
Sign inDemoInstall

express-static

Package Overview
Dependencies
3
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.2 to 1.2.3

10

package.json
{
"name": "express-static",
"version": "1.2.2",
"description": "serve static files for kelp",
"version": "1.2.3",
"description": "serve static files for express",
"main": "index.js",

@@ -10,3 +10,3 @@ "scripts": {

"bin": {
"kelp-static": "bin/server.js"
"express-static": "bin/server.js"
},

@@ -16,4 +16,4 @@ "author": "lsong",

"keywords": [
"kelp",
"static"
"express",
"express-static"
],

@@ -20,0 +20,0 @@ "repository": {

@@ -1,9 +0,8 @@

## kelp-static ![npm](https://badge.fury.io/js/kelp-static.png)
## express-static ![npm](https://badge.fury.io/js/express-static.png)
serve static files for kelp
> serve static files for express
### Installation
````
$ npm install [-g] kelp-static --save
$ npm install express-static --save
````

@@ -13,11 +12,13 @@

````javascript
const http = require('http');
const kelp = require('kelp');
const serve = require('kelp-static');
const express = require('express');
const serve = require('express-static');
const app = kelp();
const app = express();
app.use(serve('./public'));
app.use(serve(__dirname + '/public'));
http.createServer(app).listen(3000);
const server = app.listen(3000, function(){
console.log('server is running at %s', server.address().port);
});
````

@@ -35,3 +36,3 @@

### MIT license
Copyright (c) 2016 lsong
Copyright (c) 2014 lsong

@@ -56,2 +57,2 @@ Permission is hereby granted, free of charge, to any person obtaining a copy

---
---
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc