Snippet is a library of code snippets/examples. It's made to show people examples of code that can easily be executed and used.
Install Snippet
with Yarn
or NPM
:
yarn add @matrixoc/snippet
npm install @matrixoc/snippet
See CONTRIBUTING.md.
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');
snippet.getSnippets();
snippet.getSnippetsByLanguage('javascript');
snippet.getSnippetByName('hello_world_js');
snippet.checkName('hello_world_js');
snippet.checkLanguage('javascript');
You may add a Snippet and it will be reviewed within the next 48 hours.
The following is a list of all contributors(a-z);