Nerdiest Political Manifesto
Learn about our RFC process, Open RFC meetings & more.Join in the discussion! »

publishimo

3.5.0 • Public • Published

publishimo

Greenkeeper badge

Generates a better package.json for published packages.

API

import publishimo from "publishimo"
publishimo(options).then(result => {
  console.log(result)
})

Options

const publishimoConfig = {
 
  // Can be a path to an existing package.json or a pkg object
  pkg: path.resolve("..", "package.json"), // Default: {}
 
  // Output generated pkg data as JSON to specified file
  output: path.resolve("..", "dist", "package.json"), // Default: false
 
  // If true, some metadata gets fetched from an existing GitHub repository
  fetchGithub: true, // Default: false
 
  name: "name", // Default: Name of project root folder
  version: "1.2.3", // Default: 1.0.0
  main: "index.js", // No default, but publishimo-webpack-plugin has one
  license: "MIT", // Default comes from GitHub if fetchGithub is true
  description: "", // Default comes from GitHub if fetchGithub is true
  keywords: ["tag"] // Default comes from GitHub if fetchGithub is true (repository topics)
  author: {
    name: "Smitty Werben Jagger Man Jaidsen",
    email: "jaid@example.com",
    github: "Jaid" // Shortcut for author.homepage
  },
  os: ["!darwin"],
  cpu : ["x64", "ia32"],
  engines: {
    "node" : ">=11.6.0"
  },
  repository: "", // Default: github.com/{author.github}/{name},
  homepage: "", //Default: github.com/{author.github}/{name}#readme"
  bugs: "", // Default: github.com/{author.github}/{name}/issues
  contributors: "",
  dependencies: {},
  peerDependencies: {},
  bundleDependencies: {},
  optionalDependencies: {}
 
}

Install

npm i [email protected]

Version

3.5.0

License

MIT

Unpacked Size

53.4 kB

Total Files

5

Last publish

Collaborators

  • avatar