abbrev-kindof
Advanced tools
Comparing version 0.0.0 to 1.0.0
## 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 |
{ | ||
"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** |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
13136
1
90