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

rheactor-value-objects

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rheactor-value-objects

A collection of value objects

  • 1.6.1
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
4
decreased by-20%
Maintainers
1
Weekly downloads
 
Created
Source

rheactor-value-objects

Build Status monitored by greenkeeper.io js-standard-style semantic-release Codacy Badge Codacy Badge

NPM

A collection of value objects

Common API

.Type()

This method exposes a tcomb type validation base on the name of the type.

Note that instanceof can't be used because having this check will return false, because the application using the value-objects package will create an instance that Node.js thinks to be from a different location that the one referenced in this package's uri.js

# app.js
const URIValue = require('rheactor-value-objects/uri')
let u = new URIValue(…)
URIValue.Type(u) // will fail

# uri.js
URIValue.Type = t.irreducible('URIValue', (x) => x instanceof URIValue)

TODO

  • Replace HAPI Joi validation with tcomb validation

FAQs

Package last updated on 14 Jul 2016

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