@matrixoc/snippet

1.1.70 • Public • Published

Snippet

Build Status CircleCI

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_js');

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);

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.700latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.700
1.1.690
1.1.680
1.1.670
1.1.660
1.1.650
1.1.640
1.1.630
1.1.620
1.1.610
1.1.600
1.1.590
1.1.580
1.1.570
1.1.560
1.1.550
1.1.540
1.1.530
1.1.520
1.1.510
1.1.500
1.1.490
1.1.480
1.1.470
1.1.460
1.1.450
1.1.440
1.1.430
1.1.420
1.1.410
1.1.400
1.1.390
1.1.380
1.1.370
1.1.360
1.1.350
1.1.340
1.1.330
1.1.320
1.1.310
1.1.300
1.1.290
1.1.280
1.1.270
1.1.260
1.1.250
1.1.240
1.1.230
1.1.220
1.1.210
1.1.200
1.1.190
1.1.180
1.1.150
1.1.140
1.1.130
1.1.120
1.1.110
1.1.100
1.1.90
1.1.80
1.1.70
1.1.60
1.1.50
1.1.40
1.1.30
1.1.20
1.1.10
1.0.230
1.0.220
1.0.210
1.0.200
1.0.190
1.0.180
1.0.170
1.0.160
1.0.150
1.0.140
1.0.130
1.0.120
1.0.110
1.0.100
1.0.90
1.0.80
1.0.70
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i @matrixoc/snippet

Weekly Downloads

0

Version

1.1.70

License

none

Unpacked Size

154 kB

Total Files

55

Last publish

Collaborators

  • faztasio