New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

value

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

value - npm Package Compare versions

Comparing version 0.3.3 to 0.4.0

2

package.json
{
"name": "value",
"description": "Convenient type-checking in JavaScript",
"version": "0.3.3",
"version": "0.4.0",
"homepage": "http://github.com/peerigon/value",

@@ -6,0 +6,0 @@ "repository": "git://github.com/peerigon/value.git",

@@ -0,1 +1,5 @@

> **⚠️ DEPRECATED ⚠️**
>
> This module has been deprecated. You should lock your version to `0.3.3`. It will be replaced by a different module.
value

@@ -5,3 +9,3 @@ =====

value is designed to ease [type-checking in JavaScript](http://bonsaiden.github.com/JavaScript-Garden/#types.typeof) while keeping performance in mind. It comes with a [fluent api](http://martinfowler.com/bliki/FluentInterface.html) to improve the readability of your code. Use value to sanitize function parameters and to provide better error messages if some type is unexpected.
value is designed to ease [type-checking in JavaScript](http://bonsaiden.github.com/JavaScript-Garden/#types.typeof) while keeping performance in mind. It comes with a [fluent api](http://martinfowler.com/bliki/FluentInterface.html) to improve the readability of your code. Use value to sanitize function parameters and to provide better error messages if some type is unexpected.

@@ -17,4 +21,6 @@ [![Build Status](https://secure.travis-ci.org/jhnns/value.png?branch=master)](http://travis-ci.org/jhnns/value)

`npm install value`
`npm install value@0.3.3`
**It's important to use this version number because newer versions will be an entire
If you're not using a CommonJS-system in the browser value is namespaced under `window.jhnns.value`.

@@ -128,4 +134,4 @@

```javascript
value(new String()).typeOf(String); // = true
value(new String()).typeOf(Object); // = false
value(new String()).typeOf(String); // = true
value(new String()).typeOf(Object); // = false
```

@@ -169,2 +175,2 @@

### MIT
### MIT

Sorry, the diff of this file is not supported yet

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