Neoanthropic Preternatural Murmurings
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

argent

0.1.0 • Public • Published

argent

Declarative handling of optional parameters

Usage

var argent = require('argent');
 
var myWrappedFunction = argent(function(arg1, arg2, arg3) {
    // function body goes here.
}, [
    argent.string.regex(/[\d-]*/).def('default value'),
    argent.and(argent.object, argent.all(['prop1', 'prop2']), argent.one(['prop3, prop4])),
    argent.function
]);

Keywords

none

Install

npm i argent

DownloadsWeekly Downloads

0

Version

0.1.0

License

none

Last publish

Collaborators

  • avatar
  • avatar