apeman-init

3.1.4 • Public • Published

apeman-init

Build Status Code Climate Code Coverage npm Version

apeman CLI tool to initialize apeman project.

Overview

apeman-init command initialize a directory as an apeman project.

After initialized, you'll be able to use various apeman command at the project root directory.

Installation

npm install apeman-init -g

Usage

Call apeman-init command at your project root directory to initialize as an apeman project.

$ apeman-init

CLI Options

$ apeman-init -h
 
  Usage: apeman-init [options] 
 
  Initialize a directory as an apeman project.
 
  Options:
 
    -h, --help               output usage information
    -V, --version            output the version number
    -f, --force              Force to init.
    -d, --dirname <dirname>  Directory name to init.
    -s, --silent             Disable console logs
    -p, --pkg <pkg>          Path of package.json
 
 

Programmatic API

apeman-init also provide programmatic API.

Firstly, install the module locally.

$ npm install apeman-init --save-dev

Then,

#!/usr/bin/env node
'use strict'
 
const apemanInit = require('apeman-init')
 
apemanInit({}).then(() => {
  /* ... */
})
 

Programmatic Options

Key Description Default
force Force to init.
dirname Directory name to init. process.cwd()
silent Disable console logs
pkg Path of package.json './package.json'

License

This software is released under the MIT License.

Links

Readme

Keywords

Package Sidebar

Install

npm i apeman-init

Weekly Downloads

12

Version

3.1.4

License

MIT

Last publish

Collaborators

  • okunishinishi