Server : LiteSpeed
System : Linux server900.shared.spaceship.host 4.18.0-553.89.1.lve.el8.x86_64 #1 SMP Wed Dec 10 13:58:50 UTC 2025 x86_64
User : kvzyqrttyz ( 5084)
PHP Version : 8.1.34
Disable Function : NONE
Directory :  /opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules/stringify-package/

📁 Create New:
⬆️ Upload File:
Current Dir [ Not Writable ] Root [ Not Writable ]


OR Upload from URL:
URL: Save as:

📄 File: index.js

Path: //opt/alt/alt-nodejs8/root/usr/lib/node_modules/npm/node_modules/stringify-package/index.js

Size: 367 B

Permissions: 0644

'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
}

← Back to Directory Edit File 🔒 Chmod

WP File Manager