package-boot

npm module capable of creating npm modules

Usage no npm install needed!

<script type="module">
  import packageBoot from 'https://cdn.skypack.dev/package-boot';
</script>

README

code style downloads license npm version

package-boot

A package capable of creating packages

usage

const boot = require("package-boot");

boot(path, dependencies, skel, properties);

path - mandatory string, specifies the path (with name) of the new package
dependencies - optional list of objects containing the name and version and optionally the dev status of the package to be added as a dependency for the new package
skel - optional string, specifies the path for skeleton files
properties - optional object with properties to be merged to the final package.json file

sample

const app = require("./package.json");
const boot = require("package-boot");

boot("name", [
  app,
  "deltree",
  {name: "package-boot", dev: true}
],
`${__dirname}/skel`,
{
  keywords: [
    "alpha",
    "beta",
    "omega"
  ],
  scripts: {
    test: "node ./test.js"
  }
});