1.2.2 • Published 7 years ago

json-format-safely v1.2.2

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

json-format-safely

Browser

Example

<script src="https://npmcdn.com/json-format-safely@1.0.0/index.js"></script>
<script>
let result = jsonFormatSafely('[12345678901234567890]');
console.log(result);
</script>

Output

[
  12345678901234567890
]

Node

Install

npm install json-format-safely

Example

const jsonFormatSafely = require('json-format-safely');
let result = jsonFormatSafely('[12345678901234567890]');
console.log(result);

Output

[
  12345678901234567890
]

CLI

Install with global

npm install json-format-safely -g

Example

echo '[12345678901234567890]' | json-format-safely

Output

[
  12345678901234567890
]
1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago