# is-object-literal

> Validates a given value is a literal Object

Latest version **1.0.1** (published 2018-11-19) · ISC license · 0 weekly downloads

## Install

```sh
npm install is-object-literal
pnpm add is-object-literal
yarn add is-object-literal
bun add is-object-literal
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2018-11-19 |
| First published | 2018-11-19 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 12.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Sahar Brodbeker |
| Maintainers | cocopina |
| Keywords | object, literal, check, validate, validation |

## Links

- npm: https://www.npmjs.com/package/is-object-literal
- Repository: https://github.com/sahariko/is-object-literal
- Issues: https://github.com/sahariko/is-object-literal/issues
- npm.io page: https://npm.io/package/is-object-literal

## Alternatives

- [@regle/core](https://npm.io/package/@regle/core.md) — 47.0K weekly downloads
- [typeof-arguments](https://npm.io/package/typeof-arguments.md) — 12.5K weekly downloads
- [@lokalise/projects-engine-contracts](https://npm.io/package/@lokalise/projects-engine-contracts.md) — 978 weekly downloads
- [@osjwnpm/nam-laboriosam-quibusdam](https://npm.io/package/@osjwnpm/nam-laboriosam-quibusdam.md) — 70 weekly downloads
- [@oridune/validator](https://npm.io/package/@oridune/validator.md) — 16 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2018-11-19
- 1.0.0-rc — 2018-11-19
- 1.0.0 — 2018-11-19

## README

# is-object-literal [![](https://img.shields.io/npm/v/is-object-literal.svg?colorA=cb3837&colorB=474a50)](https://www.npmjs.com/package/is-object-literal)

Validates a given value is a literal Object.

## Table of Contents

- [Installation](#installation)
- [API](#api)

## Installation

Install the package:
```sh
npm i is-object-literal
```

## API

### ES6

```js
import isObjectLiteral from 'is-object-literal';

const object = {};
const nullValue = null;
const somethingElse = 1;

console.log(isObjectLiteral(object)); // true
console.log(isObjectLiteral(nullValue)); // false
console.log(isObjectLiteral(somethingElse)); // false
```

### ES5

```js
const isObjectLiteral = require('is-object-literal');

const object = {};
const nullValue = null;
const somethingElse = 1;

console.log(isObjectLiteral(object)); // true
console.log(isObjectLiteral(nullValue)); // false
console.log(isObjectLiteral(somethingElse)); // false
```

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