Socket
Book a DemoInstallSign in
Socket

@matrixoc/snippet

Package Overview
Dependencies
Maintainers
1
Versions
92
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@matrixoc/snippet

A library of code snippets.

1.1.70
latest
Source
npmnpm
Version published
Weekly downloads
5.1K
-0.91%
Maintainers
1
Weekly downloads
 
Created
Source

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

Keywords

snippet

FAQs

Package last updated on 22 Aug 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.