0.7.5 • Published 5 years ago

welshguard v0.7.5

Weekly downloads
10
License
MIT
Repository
gitlab
Last release
5 years ago

welshguard.js

Welshguard is a validation library for fontend and backend (Express.js).

Installing

$ npm i --save welshguard

Backend (Express.js)

const app = express();
createServer(app).listen(3000);

const middleware = new Welshguard().getBodyGuard({
    name: {required: true, notEmpty: true, type: RuleTypes.String},
});

app.post('/', middleware, (req, res) => {
    res.send('hello ' + req.body.name);
});
0.7.5

5 years ago

0.7.4

5 years ago

0.7.1

6 years ago

0.7.0

6 years ago

0.6.0

6 years ago

0.5.1

6 years ago

0.5.0

6 years ago

0.4.0

6 years ago

0.3.0

7 years ago

0.2.1

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago

0.0.0

7 years ago