X7ROOT File Manager
Current Path:
/lib/node_modules/npm/node_modules/stringify-package
lib
/
node_modules
/
npm
/
node_modules
/
stringify-package
/
ðŸ“
..
📄
CHANGELOG.md
(516 B)
📄
LICENSE
(717 B)
📄
README.md
(2.17 KB)
📄
index.js
(367 B)
📄
package.json
(1.74 KB)
Editing: index.js
'use strict' module.exports = stringifyPackage const DEFAULT_INDENT = 2 const CRLF = '\r\n' const LF = '\n' function stringifyPackage (data, indent, newline) { indent = indent || (indent === 0 ? 0 : DEFAULT_INDENT) const json = JSON.stringify(data, null, indent) if (newline === CRLF) { return json.replace(/\n/g, CRLF) + CRLF } return json + LF }
Upload File
Create Folder