# devious-tools

> Another JavaScript utility library that you may or may not find useful.

Latest version **1.0.2** (published 2018-04-19) · MIT license · 0 weekly downloads

## Install

```sh
npm install devious-tools
pnpm add devious-tools
yarn add devious-tools
bun add devious-tools
```

## 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.2 |
| Published | 2018-04-19 |
| First published | 2018-04-18 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 94.6 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Joonas Pilli |
| Maintainers | devioushenchman |
| Keywords | javascript, utility, library |

## Links

- npm: https://www.npmjs.com/package/devious-tools
- Repository: https://github.com/joonaspilli/devious-tools
- Homepage: https://github.com/joonaspilli/devious-tools#readme
- Issues: https://github.com/joonaspilli/devious-tools/issues
- npm.io page: https://npm.io/package/devious-tools

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2018-04-19
- 1.0.1 — 2018-04-18
- 1.0.0 — 2018-04-18

## README

# DeviousTools.js

Another JavaScript utility library that you may or may not find useful.

## What is this?

A personal learning project and an evergrowing collection of utility functions mainly intended for the author's personal use.

## Installation

### Browser

``` html
<script src="devious-tools.umd.js"></script>
```

### Node.js

``` shell
$ npm i --save devious-tools
```

## Requiring/importing in Node.js

### CommonJS Modules:
``` javascript
// Get everything
const DeviousTools = require('devious-tools');

// Or a single module
// Path is constructed like so: 'devious-tools/<module name>'
const dObjects = require('devious-tools/dObjects').dObjects;

// Or just a single function
// Path is constructed like: 'devious-tools/<module name>/<function name>'
const deepMerge = require('devious-tools/dObjects/deepMerge').deepMerge;

// You can also use the prebuilt UMD-bundle, if you need to
const DeviousTools = require('./devious-tools.umd.js');
```

### ES Modules:
``` javascript
// Get everything
import DeviousTools from 'devious-tools';

// Or a single module
// Path is constructed like so: 'devious-tools/<module name>'
import { dObjects } from 'devious-tools/dObjects';

// Or just a single function
// Path is constructed like so: 'devious-tools/<module name>/<function name>'
import { deepMerge } from 'devious-tools/dObjects/deepMerge';

// You can also use the prebuilt ESM-bundle, if you need to
import DeviousTools from './devious-tools.esm.js';
```

When using webpack and ES modules, importing single modules or functions <strong>may</strong> cause errors. This is because webpack doesn't support mixing CJS and ESM -styled exporting/importing in modules. An easy solution is to just import the full library instead.

## Documentation

[Documentation is available here.](http://joonaspilli.com/devious-tools/docs/)

## Development

``` shell
# install dependencies
$ npm install

# build bundles
$ npm run build

# generate docs
$ npm run docs
```

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