You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

@intothesource/express-csv-redirect-middleware

Package Overview
Dependencies
Maintainers
2
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@intothesource/express-csv-redirect-middleware

ExpressJS Middleware that handles redirects from a CSV file

1.3.0
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
2
Weekly downloads
 
Created
Source

express-csv-redirect-middleware

ExpressJS Middleware that handles redirects from a CSV file

Example

foo.csv:

/foo/	307	/bar/
/foo/	307 /
/foo/	410

server.js:

import { readFileSync } from 'fs'
import { join } from 'path'
import express from 'express'
import csvRedirectMiddleware from '@intothesource/express-csv-redirect-middleware'

const csv = readFileSync(join(__dirname, 'foo.csv'))
const app = express()
app.use(csvRedirectMiddleware(csv))

FAQs

Package last updated on 25 Sep 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