data-utility-belt

Crates.iodata-utility-belt
lib.rsdata-utility-belt
version0.1.5
sourcesrc
created_at2020-04-06 13:38:05.879956
updated_at2020-07-25 18:01:14.753851
descriptionUtility to perform a series of basic operation on data.
homepagehttps://github.com/adalbertoteixeira/data-utility-belt
repositoryhttps://github.com/adalbertoteixeira/data-utility-belt
max_upload_size
id226907
size26,043
Adalberto Teixeira (adalbertoteixeira)

documentation

README

Data Utility Belt

CLI set of utilities to automate small common everyday tasks operated on strings, arrays and objects.

Orientated towards JavaScript and React development, and still on it's very early stages.

Installation

cargo install data-utility-belt

Strings

Nothing to see here yet.

Array

Operations performed on arrays.

Remove duplicates (default: true)

By default any array passed in will remove duplicate values.

$ data-utility-belt array "cli os os cli"

> cli, os

props to array (React)

$ data-utility-belt array "
  goal={goal} strategy={strategy} idealinfluencer={idealinfluencer}
" props_to_array
  

> goal, idealinfluencer, strategy

array to props (React)

data-utility-belt array "
  className,
  entityType,
  entityId,
  childType,
  childKey,
  chatContext,
  counts,
" array_to_props

> chatContext={chatContext} 
  childKey={childKey}
  childType'={childType'}
  counts={counts}
  entityId={entityId}
  entityType={entityType}

Difference

cargo run -- object --difference  "$(cat examples/a.json )" "$(cat examples/b.json )"
Commit count: 18

cargo fmt