🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

tl-static

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tl-static

node快速启动静态服务

latest
npmnpm
Version
1.0.1
Version published
Weekly downloads
2
-71.43%
Maintainers
1
Weekly downloads
 
Created
Source

使用node 搭建的快速启动本地静态服务

mac 使用

# 新建项目
mkdir [fileName]

# 进入项目
cd [fileName]

# 安装tl-static
npm i tl-static -S

# 静态服务资源放在根目录下
[fileName]/[static]

# 新建启动文件 index.js

const app = require('tl-static')
# 设置静态目录和端口
app([static],4000)

FAQs

Package last updated on 26 Nov 2019

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