8000 GitHub - shtakai/snippet: A library of code snippets.
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

shtakai/snippet

 
 

Repository files navigation

Snippet

Build Status

Snippet is a library of code snippets/examples. It's made to show people examples of code that can easily be executed and used.

Installation

Install Snippet with Yarn or NPM:

yarn add @matrixoc/snippet
npm install @matrixoc/snippet

Contributing

See CONTRIBUTING.md.

API

There is a few functions that package up some helpful methods for use with Snippet.

/* Load up the Node module */
const snippet = require('@matrixoc/snippet');

Get All Snippets

snippet.getSnippets();

Get All Snippets for a Certain Language

snippet.getSnippetsByLanguage('javascript');

Get a Snippet By Name

snippet.getSnippetByName('hello_world_j
6829
s');

Check If a Snippet Exists

snippet.checkName('hello_world_js');

Check If a Language Has Any Snippets

snippet.checkLanguage('javascript');

Contributing

You may add a Snippet and it will be reviewed within the next 48 hours.

Contributors

The following is a list of all contributors(a-z);

About

A library of code snippets.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 66.4%
  • Python 13.2%
  • Ruby 12.0%
  • Java 4.4%
  • Batchfile 3.8%
  • Shell 0.2%
0