Skip to content
This repository has been archived by the owner on Sep 30, 2019. It is now read-only.

75lb/nature

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

view on npm npm module downloads per month Build Status Dependency Status Analytics

Nature

abstract validation tests, for re-usabilty.

Model

A plain object with

  • validation per property
  • validation per whole object (e.g. values must not match)
  • observable, emit change events

Collection

  • validation (e.g. all files in a collection exist)

nature module

provides extra features on models and collections..

  • test valid: nature.isValid(model)

  • group: nature.group(model, [ "name", "type" ], "groupA")

  • mixin: nature.merge(commandLineArgs, fileArgs)

  • extract: nature.where(model, "fileArgs")

  • create

    var argv = nature.create([ { name: "one", alias: "a" }, { name: "files", alias: "a", required: true, defaultOption: true }, { name: "verbose", type: "boolean" } ]);

About

currently inactive

Resources

Code of conduct

Stars

Watchers

Forks

Packages

No packages published