0.3.2 • Published 9 months ago

view-source v0.3.2

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

view-source

view-source

An Express.js add-on to render source code. Use it if you need to show source code of a project over the web.

Usage

Install it via npm i view-source (or yarn add view-source). Then the following:

const express = require('express');
const { viewSource } = require('view-source');

const app = express();

viewSource({
  appTitle: 'My App Name',
  app,
  route: '/code',
  source: __dirname + '/../'
});

Where route is the path from which you'll access the viewer and source is the actual physical place where the files are located.

0.3.2

9 months ago

0.3.1

9 months ago

0.3.0

9 months ago

0.2.0

9 months ago

0.1.0

9 months ago