Skip to content

A lightweight node server library with request and error logging out of the box.

Notifications You must be signed in to change notification settings

LowLifeArcade/rewind

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Rewind

A lightweight node server library with request and error logging out of the box.


drawing

    import rewind from 'rewind'; // "type": "module" in package.json

    const app = rewind();
    
    app.get('/', async (req, res) => {
        res.send('< Rewind <');
    });
    app.listen(1337, () => {
        console.log('server running on 1337');
    });

Installation

$ npm i @lowlifearcade/rewind

Configuration

Pass a config object on creation

const app = rewind({
    base: '/rewind'
})

Default:

{ 
    base = '/', 
    loggingEnabled = true,
    logsPath = null, // creates a "logs" folder in the root of your project
    logTTL = null, // they live forever
}

About

A lightweight node server library with request and error logging out of the box.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published