Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

nature

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nature

Classify the things in your world and how they interact.

  • 0.5.6
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
269
decreased by-37.44%
Maintainers
1
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 09 Jun 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc