convert spreadsheet | convert sheet helper functions | | Search

The package.json file is a standard file used to manage dependencies and metadata of a Node.js project, providing information on the project's name, description, license, and dependencies. The project requires Node.js version 8 or later and npm version 4 or later, and its dependencies include Google Cloud APIs, a templating engine, and text processing libraries.

Run example

npm run import -- "package.json"

package.json

{
    "name": "SheetToWeb",
    "description": "Marketing site functions",
    "license": "UNLICENSED",
    "scripts": {
    },
    "engines": {
        "node": ">= 8",
        "npm": ">= 4"
    },
    "repository": {
        "type": "git",
        "url": "git+https://github.com/megamindbrian/jupytangular.git"
    },
    "dependencies": {
        "@google-cloud/compute": "^0.12.0",
        "@google-cloud/storage": "^2.5.0",
        "googleapis": "^39.2.0",
        "jsdom": "^14.0.0",
        "mustache": "^3.0.1",
        "remarkable": "^1.7.1"
    }
}

What the code could have been:

json
{
  "$schema": "https://npm.github.io/lifecycle/schema/2.0.0.json",
  "name": "SheetToWeb",
  "description": "Marketing site functions",
  "license": "UNLICENSED",
  "scripts": {
    "start": "node index.js", // Run the application
    "test": "jest", // Run Jest tests
    "build": "tsc -p tsconfig.json" // Compile TypeScript code
  },
  "engines": {
    "node": "^16.0.0", // Node.js version 16 or higher
    "npm": "^8.0.0" // npm version 8 or higher
  },
  "repository": {
    "type": "git",
    "url": "https://github.com/megamindbrian/jupytangular.git"
  },
  "keywords": ["marketing", "site", "functions"],
  "main": "index.js",
  "files": ["index.js", "README.md"],
  "author": {
    "name": "Brian",
    "email": "megamindbrian@gmail.com"
  },
  "dependencies": {
    "@google-cloud/compute": "^0.12.0",
    "@google-cloud/storage": "^2.5.0",
    "googleapis": "^39.2.0",
    "jsdom": "^14.0.0",
    "mustache": "^3.0.1",
    "remarkable": "^1.7.1"
  },
  "devDependencies": {
    "ts-node": "^10.0.0",
    "typescript": "^4.2.0",
    "jest": "^27.0.0"
  },
  "scripts": {
    // Run the application
    "start": "node index.js",
    // Run Jest tests
    "test": "jest",
    // Compile TypeScript code
    "build": "tsc -p tsconfig.json",
    // Run TypeScript type checking
    "type-check": "tsc --noEmit",
    // Watch TypeScript files for changes
    "watch": "tsc --watch"
  },
  "issues": [
    "If you encounter any issues, please create an issue on GitHub."
  ],
  "contributors": [
    {
      "name": "Brian",
      "email": "megamindbrian@gmail.com",
      "github": "megamindbrian"
    }
  ],
  "version": "1.0.0-alpha.0",
  "bugs": {
    "url": "https://github.com/megamindbrian/jupytangular/issues"
  }
}

Package JSON Breakdown

This is a package.json file, a standard file used to manage dependencies and metadata of a Node.js project.

Top-Level Properties

Scripts

Engines

Repository

Dependencies