/
opt
/
alt
/
alt-nodejs11
/
root
/
lib
/
node_modules
/
npm
/
node_modules.bundled
/
stringify-package
/
Upload Filee
HOME
'use strict' module.exports = stringifyPackage const DEFAULT_INDENT = 2 const CRLF = '\r\n' const LF = '\n' function stringifyPackage (data, indent, newline) { const json = JSON.stringify(data, null, indent || DEFAULT_INDENT) if (newline === CRLF) { return json.replace(/\n/g, CRLF) + CRLF } return json + LF }