my-json-utils

some functions for working with json, including: alphabetizing and camel casing the keys

Usage no npm install needed!

<script type="module">
  import myJsonUtils from 'https://cdn.skypack.dev/my-json-utils';
</script>

README

Json utils

some functions for working with json, including: alphabetizing and camel casing the keys

including

camelJson(file, data)

  • file: string file to write the data to
  • data: object data to write to file

updateCamelJson(file, newFile)

  • file: string file to write the data to
  • newFile: string new file to write data to - can be the same as original

alphaJson(file, data)

  • file: string file to write the data to
  • data: object data to write to file

updateAlphaJson(file, newFile)

  • file: string file to read the data from
  • newFile: string new file to write data to - can be the same as original

addJson(file, newData, newFile)

  • file: string file to read the data from
  • newData: new data to be added
  • newFile: string new file to write data to - optional, other wise the original file will be used

to publish to npm $ npm publish --access=public