Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 398 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 398 Bytes

initit

Utility module for creating npm init packages

npm i initit
#!/usr/bin/env node
const init = require('initit')

const [ name ] = process.argv.slice(2)
// user/repo/path
const template = 'jxnblk/rebass/examples/starter'

init({ name, template })
  .then(res => {
    process.exit(0)
  })
  .catch(err => {
    console.log(err)
    process.exit(1)
  })

MIT License