https://github.com/c8r/initit
Last synced: about 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/c8r/initit
- Owner: c8r
- Created: 2018-05-11T20:50:46.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2021-01-25T15:14:38.000Z (over 5 years ago)
- Last Synced: 2025-04-12T00:55:08.697Z (about 1 year ago)
- Language: JavaScript
- Size: 3.91 KB
- Stars: 23
- Watchers: 3
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# initit
Utility module for creating `npm init` packages
```sh
npm i initit
```
```js
#!/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