# is-primitive-x

> Returns true if the value is a primitive.

Latest version **1.0.1** (published 2019-08-28) · MIT license · 0 weekly downloads

## Install

```sh
npm install is-primitive-x
pnpm add is-primitive-x
yarn add is-primitive-x
bun add is-primitive-x
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2019-08-28 |
| First published | 2019-08-15 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Node | >=8.11.4 |
| Dependencies | 0 |
| Unpacked size | 30.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Graham Fairweather |
| Maintainers | xotic750 |
| Keywords | isPrimitive, module, javascript, nodejs, browser |

## Links

- npm: https://www.npmjs.com/package/is-primitive-x
- Repository: https://github.com/Xotic750/is-primitive-x
- Issues: https://github.com/Xotic750/is-primitive-x/issues
- npm.io page: https://npm.io/package/is-primitive-x

## Alternatives

- [@opentelemetry/exporter-zipkin](https://npm.io/package/@opentelemetry/exporter-zipkin.md) — 14.8M weekly downloads
- [pusher-js](https://npm.io/package/pusher-js.md) — 2.0M weekly downloads
- [browserify](https://npm.io/package/browserify.md) — 1.7M weekly downloads
- [sqs-consumer](https://npm.io/package/sqs-consumer.md) — 1.7M weekly downloads
- [@sanity/eventsource](https://npm.io/package/@sanity/eventsource.md) — 930.8K weekly downloads

## Recent versions

- 1.0.1 (latest) — 2019-08-28
- 1.0.0 — 2019-08-15

## README

<a
  href="https://travis-ci.org/Xotic750/is-primitive-x"
  title="Travis status">
<img
  src="https://travis-ci.org/Xotic750/is-primitive-x.svg?branch=master"
  alt="Travis status" height="18">
</a>
<a
  href="https://david-dm.org/Xotic750/is-primitive-x"
  title="Dependency status">
<img src="https://david-dm.org/Xotic750/is-primitive-x/status.svg"
  alt="Dependency status" height="18"/>
</a>
<a
  href="https://david-dm.org/Xotic750/is-primitive-x?type=dev"
  title="devDependency status">
<img src="https://david-dm.org/Xotic750/is-primitive-x/dev-status.svg"
  alt="devDependency status" height="18"/>
</a>
<a
  href="https://badge.fury.io/js/is-primitive-x"
  title="npm version">
<img src="https://badge.fury.io/js/is-primitive-x.svg"
  alt="npm version" height="18">
</a>
<a
  href="https://www.jsdelivr.com/package/npm/is-primitive-x"
  title="jsDelivr hits">
<img src="https://data.jsdelivr.com/v1/package/npm/is-primitive-x/badge?style=rounded"
  alt="jsDelivr hits" height="18">
</a>
<a
  href="https://bettercodehub.com/results/Xotic750/is-primitive-x"
  title="bettercodehub score">
<img src="https://bettercodehub.com/edge/badge/Xotic750/is-primitive-x?branch=master"
  alt="bettercodehub score" height="18">
</a>
<a
  href="https://coveralls.io/github/Xotic750/is-primitive-x?branch=master"
  title="Coverage Status">
<img src="https://coveralls.io/repos/github/Xotic750/is-primitive-x/badge.svg?branch=master"
  alt="Coverage Status" height="18">
</a>

<a name="module_is-primitive-x"></a>

## is-primitive-x

Returns true if the value is a primitive.

<a name="exp_module_is-primitive-x--module.exports"></a>

### `module.exports` ⇒ <code>\*</code> ⏏

Returns true if the value is a primitive.

**Kind**: Exported member  
**Returns**: <code>\*</code> - The value to test.

| Param | Type            | Description        |
| ----- | --------------- | ------------------ |
| [val] | <code>\*</code> | The value to test. |

**Example**

```js
import isPrimitive from 'is-primitive-x';

console.log(isPrimitive()); // true
console.log(isPrimitive(42)); // true
console.log(isPrimitive('abc')); // true
console.log(isPrimitive(Symbol())); // true

console.log(isPrimitive({})); // false
console.log(isPrimitive([])); // false
console.log(isPrimitive(function() {})); // false
console.log(isPrimitive(new Date())); // false
```

---
_Source: https://npm.io/package/is-primitive-x · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
