X Tutup
Skip to content

EvanHahn/pythonlike-json-tool.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

python -m json.tool for JavaScript

This module aims to replicate the output of Python's json.tool in JavaScript. This includes indentation and key alphabetization.

In a CommonJS environment (like Node, Webpack, or Browserify):

var pythonlikeJsonToolStringify = require('pythonlike-json-tool')

In a browser environment:

<script src="/path/to/pythonlike-json-tool.js"></script>

Once it's included:

pythonlikeJsonToolStringify({
  key: 'value',
  another: 'prop'
})
// {
//     "another": "prop",
//     "key": "value"
// }

About

a JavaScript port of Python's json.tool

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

X Tutup