Skip to content

Commit

Permalink
js --> javascript
Browse files Browse the repository at this point in the history
  • Loading branch information
micahstubbs committed Aug 13, 2018
1 parent 1592733 commit 76ed184
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ $ npm install serve-index

## API

```js
```javascript
var serveIndex = require('serve-index')
```

Expand Down Expand Up @@ -62,7 +62,7 @@ Optional path to a CSS stylesheet. Defaults to a built-in stylesheet.
Apply this sort function to files. Optional. The `sort` function is
called for each file tuple with the signature `sort(file1, file2)`.
An example for sorting files by date of modification (descending) is:
```js
```javascript
function(file1, file2) {
// sort ".." to the top
if (file1.name === '..' || file2.name === '..') {
Expand Down Expand Up @@ -110,7 +110,7 @@ Display mode. `tiles` and `details` are available. Defaults to `tiles`.

### Serve directory indexes with vanilla node.js http server

```js
```javascript
var finalhandler = require('finalhandler')
var http = require('http')
var serveIndex = require('serve-index')
Expand All @@ -137,7 +137,7 @@ server.listen(3000)

### Serve directory indexes with express

```js
```javascript
var express = require('express')
var serveIndex = require('serve-index')

Expand Down

0 comments on commit 76ed184

Please sign in to comment.