nature
Classify the things in your world and how they interact.
Last updated 12 years ago by 75lb .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install nature 
SYNC missed versions from official npm registry.

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" } ]);

Current Tags

  • 0.5.7                                ...           latest (12 years ago)

29 Versions

  • 0.5.7                                ...           12 years ago
  • 0.5.6                                ...           12 years ago
  • 0.5.5                                ...           12 years ago
  • 0.5.4                                ...           12 years ago
  • 0.5.3                                ...           12 years ago
  • 0.5.2                                ...           12 years ago
  • 0.5.1                                ...           12 years ago
  • 0.5.0                                ...           12 years ago
  • 0.4.3                                ...           12 years ago
  • 0.4.2                                ...           12 years ago
  • 0.4.1                                ...           12 years ago
  • 0.4.0                                ...           12 years ago
  • 0.3.2                                ...           12 years ago
  • 0.3.1                                ...           12 years ago
  • 0.3.0                                ...           12 years ago
  • 0.2.5                                ...           12 years ago
  • 0.2.4                                ...           12 years ago
  • 0.2.3                                ...           12 years ago
  • 0.2.2                                ...           12 years ago
  • 0.2.1                                ...           12 years ago
  • 0.2.0                                ...           12 years ago
  • 0.1.3                                ...           13 years ago
  • 0.1.2                                ...           13 years ago
  • 0.1.1                                ...           13 years ago
  • 0.1.0                                ...           13 years ago
  • 0.0.4                                ...           13 years ago
  • 0.0.3                                ...           13 years ago
  • 0.0.2                                ...           13 years ago
  • 0.0.1                                ...           13 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 17
Last Day 0
Last Week 17
Last Month 0
Dependencies (3)
Dev Dependencies (1)

Copyright 2013 - present © cnpmjs.org | Home |