4.4.7-alpha.9 • Published 3 years ago

@mrbuilder/tool v4.4.7-alpha.9

Weekly downloads
30
License
MIT
Repository
-
Last release
3 years ago

Muck

This a tool for mucking with json files within projects. Mostly package.json, its meant to be able to quickly create combinations of commands for making things work.

Examples.

$ mr-muck -p name="Name the Package" -s devDependencies.stuff=1.7.0 -c -C -n config.json

Would create a file like this if it does not exist. If it did it exist it would create config.json.bck and would have name set to Somethign and a devDependency of stuff.

{
  "name": "Something",
  "devDependencies": {
    "stuff": "1.7.0"
  }
}

And then some other time you wanted to add a description. you could

$ mr-muck -p name="Name the Package" -p description="Describe the Package" -s devDependencies.stuff=1.7.0 -s dependencies.other=1.0.0

Options

Path is a dot notation path a.b.c

ArgumentShortTypeDescription
--prompt-pmessagePrompt for any changes
--set-spath=valueSet the path
--delete-dpathDelete the key and value
--get-gpathGet the value(s) for the path
--move-mvpath=pathMove path from location to another
--skip-kSkip if value exists
--unless-uOnly if key exists
--confirm-cConfirm change
--ignore-ipackagesPackages to ignore
--no-lerna-nDon't use lerna
--file-ffileFile to operate upon
--create-file-cCreate file if it does not exist
--preview-PPreview files that change before writing
--scope-SOnly operate on these packages
--no-extensionWrite in place, no backup file
--help-hHelpful message
4.4.7-alpha.9

3 years ago

4.4.6

3 years ago

4.4.4

3 years ago

4.4.0

3 years ago

4.3.7

3 years ago

4.3.0-alpha.0

4 years ago

4.3.0

4 years ago

4.2.0-alpha.8

4 years ago

4.2.1

4 years ago

4.2.0

4 years ago

4.2.0-alpha.6

4 years ago

4.2.0-alpha.3

4 years ago

4.2.0-alpha.2

4 years ago

4.2.0-alpha.0

4 years ago

4.2.0-alpha.1

4 years ago

4.1.3

4 years ago

4.1.2

4 years ago

4.1.0

4 years ago

4.0.16

4 years ago

4.0.17

4 years ago

4.0.10

4 years ago

4.0.11

4 years ago

4.0.8

4 years ago

4.0.4

4 years ago

4.0.1

4 years ago

4.0.0

4 years ago

4.0.0-alpha.14

4 years ago

4.0.0-alpha.13

4 years ago

4.0.0-alpha.12

4 years ago

4.0.0-alpha.11

4 years ago

4.0.0-alpha.10

4 years ago

4.0.0-alpha.1

5 years ago

4.0.0-alpha.0

5 years ago