1.2.2 • Published 7 years ago
json-format-safely v1.2.2
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
]