Socket
Socket
Sign inDemoInstall

dotty-cli

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    dotty-cli

Generate project dotfiles quickly and easily.


Version published
Weekly downloads
3
increased by200%
Maintainers
1
Install size
7.00 kB
Created
Weekly downloads
 

Readme

Source

Dotty

A small utility for quickly creating dotfiles in a project.

Currently supports creating:

  • .gitignore
  • .travis.yml
  • .editorconfig
  • .jshintrc

Usage

npm install --global dotty-cli

Dotty works by looking for templates for each file type you want to create. The default location is ~/.dotty. In there it expects to find a folder for each filetype, with a number of templates inside. For example:

~/.dotty/
    .gitignore/
        default
        node
    .travis.yml/
        node
        ruby

If you ask Dotty to generate a file but do not tell it which template to use, it will use "default". To create a .gitignore file for example, you would do:

dotty --gi

Which would create a .gitignore file in your current working directory, copying the file contents of ~/.dotty/.gitignore/default into it. If you wanted to use a different template, you could do:

dotty --gi node

Which would use the contents of ~/.dotty/.gitignore/node.

Of course, you can generate more than one file at once:

dotty --ec --tv node

That would generate:

  • .editorconfig, using the default template
  • .travis.yml, using the node template

Filetypes and their flags

  • .gitignore : --gi
  • .jshintrc : --jh
  • .travis.yml : --tv
  • .editorconfig : --ec

FAQs

Last updated on 15 Jun 2014

Did you know?

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc