1.2.2 • Published 8 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-safelyExample
const jsonFormatSafely = require('json-format-safely');
let result = jsonFormatSafely('[12345678901234567890]');
console.log(result);Output
[
12345678901234567890
]CLI
Install with global
npm install json-format-safely -gExample
echo '[12345678901234567890]' | json-format-safelyOutput
[
12345678901234567890
]