# @devutil/devutil

> Useful JavaScript development utilities (functions).

Latest version **1.0.0** (published 2021-10-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @devutil/devutil
pnpm add @devutil/devutil
yarn add @devutil/devutil
bun add @devutil/devutil
```

## 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.0 |
| Published | 2021-10-07 |
| First published | 2021-10-07 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Andrey Kashukov |
| Maintainers | devutil |
| Keywords | javascript, development, frontend, functions |

## Links

- npm: https://www.npmjs.com/package/@devutil/devutil
- Repository: https://github.com/devutiljs/devutil
- Homepage: https://github.com/devutiljs/devutil#readme
- Issues: https://github.com/devutiljs/devutil/issues
- npm.io page: https://npm.io/package/@devutil/devutil

## Recent versions

- 1.0.0 (latest) — 2021-10-07

## README

# DevUtil.js

Useful JavaScript development utilities (functions).

## Usage

### JavaScript file

1. Download whole repository or just a single [devutil.js](dist/devutil.js) file.

2. Add to .html file (`<head>` section):

`<script src="devutil.js"></script>`

3. Call JavaScript function from your JavaScript code, example:
```javascript
<script type="application/javascript">
  console.log(DevUtil.isTrue(true));
</script>
```

## Functions

| JavaScript function   | Description                                                         |
| --------------------- | ------------------------------------------------------------------- |
| DevUtil.isDefined()   | `true` if variable is defined, `false` otherwise                  |
| DevUtil.isUndefined() | `true` if variable is undefined, `false` otherwise                |
| DevUtil.isTrue()      | `true` if variable's value equals to **true**, `false` otherwise  |
| DevUtil.isFalse()     | `true` if variable's value equals to **false**, `false` otherwise |

## Unit tests

1. Install [npm](https://www.npmjs.com) package manager

2. Install [Jest](https://jestjs.io) framework. For example, via 'npm':

`npm install --save-dev jest`

3. Run unit tests:

`npm run test`

## License

[MIT](LICENSE)

Copyright (c) 2021, [Andrey Kashukov](https://github.com/kashukov)

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