# dookie-tools

> A set of tools to use in your scripts. Fast and easy!

Latest version **0.1.3** (published 2015-07-22) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.3 |
| Published | 2015-07-22 |
| First published | 2014-09-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Agustín Cañas |
| Maintainers | dookie23 |
| Keywords | swissknife, all-in-one, array utils, json utils |

## Links

- npm: https://www.npmjs.com/package/dookie-tools
- Repository: https://github.com/dookie23/dtools
- Issues: https://github.com/dookie23/dtools/issues
- npm.io page: https://npm.io/package/dookie-tools

## Alternatives

- [@mapbox/jsonlint-lines-primitives](https://npm.io/package/@mapbox/jsonlint-lines-primitives.md) — 5.3M weekly downloads
- [reftools](https://npm.io/package/reftools.md) — 3.5M weekly downloads
- [@hey-api/openapi-ts](https://npm.io/package/@hey-api/openapi-ts.md) — 3.5M weekly downloads
- [@mapbox/geojson-rewind](https://npm.io/package/@mapbox/geojson-rewind.md) — 2.4M weekly downloads
- [turbo-stream](https://npm.io/package/turbo-stream.md) — 1.7M weekly downloads

## Recent versions

- 0.1.3 (latest) — 2015-07-22
- 0.0.7 — 2015-04-28
- 0.0.6 — 2015-04-03
- 0.0.5 — 2015-04-02
- 0.0.4 — 2015-03-27
- 0.0.3-b — 2014-10-15
- 0.0.3-a — 2014-10-15
- 0.0.3 — 2014-10-14
- 0.0.2 — 2014-09-17
- 0.0.1 — 2014-09-05

## README

dtools
======

A set of useful tools.

## Installation
	
	npm install dookie-tools --save

## Usage
	
	### Backend import (node.js module)

	var dtools = require('dookie-tools');

	### Frontend import (client library)

	<script src='../../bower_components/dtools/dtools.js'><script>

	### Usage

	dtools.randomInt(1,14);
	dtools.completeZerosLeft(2,4);
	dtools.numberArray(2013,3,true);
	dtools.friendlyDateRepresentation("2014-10-23");
	dtools.jsonKeyCharReplacing(inputJSON, searchValue, newValue, true);
	dtools.cleanArray(inputArray);
	dtools.findStringInArray(searchString, inputArray, true);
	dtools.milisecondsToTime(miliseconds);
	dtools.iso8601DurationtoMilliseconds(iso8601);
	dtools.replaceAll(inputString, searchString, replaceString, caseSensitive);
	dtools.isJSONObject(obj);
	dtools.isJSONArray(array);
	dtools.countJSONObjectProperties(obj);
	dtools.getRandomPropertyFromJSONObject(obj);
	dtools.plainJSONObjectToArray(obj);
	dtools.diffArrays(mainArray, secondaryArray, n)


## Tests

	npm test

## Release history

* 0.0.1 Initial release
* 0.0.2 Added numberArray function
* 0.0.3 Added friendlyDateRepresentation function
** 0.0.3a Changes in friendlyDateRepresentation
* 0.0.4 Added jsonKeyCharReplacing function
* 0.0.5 Added cleanArray function
* 0.0.6 Added findStringInArray function
* 0.0.7 Client support
* 0.1.1 Frontend-Backend version
* 0.1.2 Fixed issues in jsonKeyCharReplacing
* 0.1.3 Added iso8601DurationtoMilliseconds, replaceAll, isJSONObject, isJSONArray, countJSONObjectProperties, getRandomPropertyFromJSONObject, plainJSONObjectToArray, diffArrays

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