🚀 DAY 5 OF LAUNCH WEEK:Introducing Webhook Events for Alert Changes.Learn more →
Socket
Book a DemoInstallSign in
Socket

init.js

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

init.js

A simple command line utility to quickly initialize developer workspaces / repositories

latest
Source
npmnpm
Version
1.3.0
Version published
Maintainers
1
Created
Source

init.js

Current tag Repository issues

A simple NodeJS based command line utility to quickly initialize a developer workspace / git repository including README templates and license files.

Installation

  • Make sure you've installed all requirements

  • Install the project globally using npm:

    npm install -g init.js
    

Usage

  • Create a new folder for your new project:

    mkdir test-project
    
  • Change into that directory:

    cd test-project
    
  • Run init.js:

    init
    

You can optionally pass the following arguments:

Usage: init [options]

Options:
  -h, --help        Show help and usage information
  -v, --version     Display version information                                                 [default: false]
  -i, --ignore-git  Ignore existing .git folder in the current directory, can be true or false  [default: false]

Custom templates

Since version 1.2.0 you are able to add custom readme and license templates without sending a pull request on GitHub nor adding them in the node_modules/ folder.

Just create a directory called .initjs in your home folder and drop your template readmes into ~/.initjs/readmes/ and licenses (obviously) into ~/.initjs/licenses/.

Automatically replace GitHub username

If you have the github.user git configuration set - it will replace your GitHub user automatically. You can set it usig the following command:

git config --global github.user YourUsername

Contributing

  • Fork it

  • Create your feature branch:

    git checkout -b feature/my-new-feature
    
  • Commit your changes:

    git commit -am 'Add some feature'
    
  • Push to the branch:

    git push origin feature/my-new-feature
    
  • Submit a pull request

Requirements / Dependencies

  • NodeJS
  • Existing .gitconfig

Version

1.3.0

License

MIT

FAQs

Package last updated on 17 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts