Skip to content

Latest commit

 

History

History
84 lines (60 loc) · 1.6 KB

.verb.md

File metadata and controls

84 lines (60 loc) · 1.6 KB

{%= name %} {%= badge("fury") %}

{%= description %}

  • CLI
  • API (75% done)
  • expand emmet snippets
  • expand emmet snippets in the command line.
  • set, get, and delete snippets of code or data that can easily be reused in any project
  • fetch snippets from github or other remotes using presets
  • render snippets using data from json or yaml files, or using [expand-object][]
  • inject snippets into other files using customizable markers
  • prepend files/strings with snippets
  • append files/strings with snippets
  • Add expanded snippets to the clipboard so you can paste them wherever you want!

More to come!

Install

{%= include("install-npm", {save: true}) %}

Usage

var snippet = require('{%= name %}');

Emmet

(WIP! This is just one feature of Snippet! A lot more is on the way!)

Expand [emmet][] snippets

snippets.expand('ul>li.item$*3');

Results in:

<ul>
  <li class="item1"><%= param0 %></li>
  <li class="item2"><%= param1 %></li>
  <li class="item3"><%= param2 %></li>
</ul>

Expand emmet snippets with custom placehoders

snippets.expand('ul>li.item$*3', ['a', 'b', 'c']);

Results in:

<ul>
  <li class="item1"><%= a %></li>
  <li class="item2"><%= b %></li>
  <li class="item3"><%= c %></li>
</ul>

API

{%= apidocs("index.js") %}

Running tests

{%= include("tests") %}

Contributing

{%= include("contributing") %}

Author

{%= include("author") %}

License

{%= copyright() %} {%= license() %}


{%= include("footer") %}

{%= reflinks(['emmet', 'expand-object']) %}