1.1.0 • Published 5 years ago
npm-initializer-template v1.1.0
npm-initializer-template
Will extract a package hosted on npmjs.com in the workingDirectory
folder. Mainly created to
use with npm generators (npm init template-name
)
Installation
npm install --save npm-initializer-template
Usage
import { createProject } from 'npm-initializer-template';
await createProject({
workingDirectory: './', // Directory where the project will be cloned
npmPackage:{
name: '@user/my-template', // NPM Package to clone
version: '1.12.1', // Optional, default to latest
},
});