New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

dookie-tools

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dookie-tools

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

0.1.3
latest
v0.1.3
Source
npmnpm
Version
0.1.3
Version published
Weekly downloads
11
-60.71%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

swissknife

FAQs

Package last updated on 22 Jul 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts