Socket
Socket
Sign inDemoInstall

abbrev-kindof

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

abbrev-kindof - npm Package Compare versions

Comparing version 0.0.0 to 1.0.0

7

history.md
## v1.0.0 / May 3, 2015
- Release v1.0.0 / npm@v1.0.0
- update readme, add related
- add example usage
- run keywords(1)
- rethink it
## v0.0.0 / May 2, 2015
- first commits

2

package.json
{
"name": "abbrev-kindof",
"version": "0.0.0",
"version": "1.0.0",
"description": "`kind-of` with single letter abbreviations to javascript native types, like `kindof(val, 'soa')` will return true if `val` is string, object or array.",

@@ -5,0 +5,0 @@ "scripts": {

@@ -5,2 +5,3 @@ ## [![npm][npmjs-img]][npmjs-url] [![mit license][license-img]][license-url] [![build status][travis-img]][travis-url] [![coverage status][coveralls-img]][coveralls-url] [![deps status][daviddm-img]][daviddm-url]

## Install

@@ -18,5 +19,35 @@ ```

var abbrevKindof = require('abbrev-kindof');
abbrevKindof(123, 'soa');
//=> false
abbrevKindof(['foo', 'bar'], 'soa');
//=> true
abbrevKindof('foo bar', 'soa');
//=> true
abbrevKindof({foo: 'bar'}, 'soa');
//=> true
```
# Possible abbreviations
- `a` for `array`
- `b` for `boolean`
- `f` for `function`
- `n` for `number`
- `o` for `object`
- `r` for `regexp`
- `s` for `string`
- `y` for `symbol`
## Related
- [assert-kindof](https://github.com/tunnckoCore/assert-kindof): Check native type of the given value and throw TypeError if not okey. Expressive, elegant, behavior-driven API, good descriptive default error messages, simple and clean syntax.
- [is-kindof](https://github.com/tunnckoCore/is-kindof): Thin wrapper around `kind-of` and in bonus functional api.
- [kind-of](https://github.com/jonschlinkert/kind-of): Get the native type of a value.
- [map-types](https://github.com/jonschlinkert/map-types): Map single letter abbreviations to javascript native types. Useful as a shorthand for pseudo-argument destructuring when debugging.
## Author

@@ -23,0 +54,0 @@ **Charlike Mike Reagent**

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