Giter VIP home page Giter VIP logo

moza's Introduction

moza

styled with prettier npm version CircleCI codecov

Install

npm i -g moza
# yarn global add moza

Usage

Place *.hbs under ./.moza/ or ~/.config/moza/ directory. The contents are like this.

---
text: foo
---

<p>{{text}}</p>

Suppose you put this as html.hbs. Then, The html command is enabled.

moza --help
# Commands:
#   html

And it is now possible to pass the text flag.

moza html --help
# Variables
#   --text

The entity of this text object is an option of yargs. When the string is set as above, it is converted as follows.

text:
 default: foo

After that, just do it like this.

moza html --text baz path/to/baz.html
# <p>baz</p>

Other commands

ls

Show enabled command list on put the local(./.moza/*.hbs). When add --global falg, global(~/.config/moza/*.hbs) command list is shown.

moza ls

add

Can fetch .hbs file from remote url. it put on local in default but this too can put on global using --global

moza add <url> --output foo.hbs

note

Show text of NOTE part of the option of Front-matter.

# baz.hbs
# ---
# NOTE: baz note
# ---
#
# <p></p>

moza note baz
# baz note

moza's People

Contributors

nju33 avatar

Watchers

 avatar  avatar

moza's Issues

get from a github repository

Configure

moza configure # inspired by awscli
github access token: ***
github username: ***
github repository: ***

then, to create ~/.moza/config following like

[default]
github_access_token = ***
github_username = ***
github_repository = ***

Generate|Copy?

moza gen tsconfig.json           # make in same name `tsconfig.json` in local 
moza gen tsconfig.build.json  # as above

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.