1.0.1 • Published 1 year ago

@lowlifearcade/rewind v1.0.1

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

Keywall Rewind

A lightweight node server library with request and error logging

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

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

Installation

$ npm install express

Configuration

Pass a config object on creation

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

Default:

{ 
    base = '/', 
    loggingEnabled = true,
    logsPath = null,
    logTTL = null,
}
1.0.1

1 year ago

1.0.0

1 year ago