Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including kiss-cli with all npm packages installed. Try it out:

var kissCli = require("kiss-cli")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

kiss-cli v0.5.5

Keep It Stupid Simple - An agnostic file snippets :kiss:

:wrench: KISS

KISS allow to create your own snippets for a context and share these with your project team mates.

npm install -g kiss-cli
mkdir myproject
cd myproject
kiss server ./index.js

:popcorn: Try it!

  • KISS must be installed globally
  • To add new types, create templates in a folder named .kiss at the root directory of your project beside of your package.json file
  • Templates files must be named <type>.<extension>
  • Kiss priorize templates in (project)/.kiss > /User/home/.kiss > (npm_prefix_path)/.kiss

You could need KISS if

  • You are a developer
  • You are a developer in a team of developers
  • You share templates with your team (Back/Front)
  • You are bored of copying/pasting script content to create new script files
  • ... :kiss:

Defaults available types/templates

  • html HTML minimal ready page
  • server Simple ExpressJS server
  • React
    • pure React/Redux connected pure component
    • dumb React Stateless/Dump component
    • jest Simple Jest test file

History

  • v0.5.0
    • :rocket: refactor all the things \o/
  • v0.3.9
    • update documentation
  • v0.3.4
    • :rocket: Release version
  • v0.3.1
    • Refactor all the things in ES6
    • Removing Angular, AMD, Grunt... Templates
    • Adding React Templates
  • v0.2.0
    • Generate files by types extension
  • v0.1.41
    • Remove --debug option
    • Remove commander as cli parser
  • v0.1.40
    • Manage dotfiles
  • v0.1.34
    • Custom templates in your home folder
    • Custom templates in your project folder
    • project folder > home folder > kiss folder
  • v0.1.24
    • Fix install 'npm install -g kiss-cli'

About

This file generator was motivated by the famous French Bonaldi's Effect:
> _It's totally unnecessary and therefore strictly indispensable!_
But it's also a great concept of the play La Cantatrice chauve by Eugène Ionesco :)

Issues

  • Overwrite an existing file without prompts
  • Not so Asynchronous
  • Files permissions
  • Units Tests...
  • :apple: tested only

MIT License NPM version NPM downloads Build Coverage

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free