UNPKG

create-octokit-project

Version:

`npm init` script to create a new Octokit JS module (plugin, authentication strategy, or otherwise)

15 lines (10 loc) 410 B
export { createLicense }; import licenseList from "spdx-license-list/full.js"; import { writePrettyFile } from "./write-pretty-file.js"; const licenseText = licenseList.MIT.licenseText; async function createLicense(name) { const mitLicenseText = licenseText .replace("<year>", new Date().getFullYear()) .replace("<copyright holders>", name); await writePrettyFile("LICENSE", mitLicenseText); }