Observed since 20 Oct, 19:23 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A command-line application for 30 seconds of code snippets
A command-line application for 30 seconds of code snippets.

Pick one of the following options to install the command-line application:
npm install -g 30s
yarn add -g 30s
$ git clone git@github.com:sQVe/30s.git
$ cd 30s/
$ npm install
$ node lib/index.js <command> <query>
| Short version | Long version | Description |
|---|---|---|
r | random | View random snippet |
s | search | Fuzzy search (RegExp) snippets by id |
t | tag | View snippets by tag |
v | view | View snippet with id |
* | View snippet with id |
| Short version | Long version | Description |
|---|---|---|
-c | --cp | Copy snippet code to clipboard |
-j | --json | Print output in JSON format |
-l | --layout | Print output with specified layout (default: "itced") |
-h | --help | Output usage information |
| Layout key | Description |
|---|---|
i | Output snippet id |
t | Output snippet tags |
c | Output snippet code |
e | Output snippet examples |
d | Output snippet description |
| Example | Description |
|---|---|
30s head | View snippet with id head |
30s v head | View snippet with id head |
30s view head | View snippet with id head |
30s r | View random snippet |
30s random | View random snippet |
30s t array | View snippets by tag array |
30s tag array | View snippets by tag array |
30s s all | Find all snippets with an id that contains all |
30s search all | Find all snippets with an id that contains all |
30s view merge --cp | View snippet with id merge and copy its code |
30s view merge --json | View snippet with id merge and output as JSON |
30s search all --layout ce | Find all snippets with an id that contains all and output code and example |
Please use the issue tracker to report bugs or file feature requests.
Pull requests are more than welcome. Do the following to start helping out:
npm install in the created directory to install all necessary dependencies.Optional steps:
30s if it's already installed: npm uninstall -g 30snpm linkTry to follow functional programming best practices. Use pure functions and Ramda when possible.
Write commits following: Angular Commit Message Conventions. This enables us to automatically release new versions together with semantic-release on fix and feat commit types.
prettier and eslint-config-sqve (a config based on standardjs) enforces our styling and formatting. It runs automatically on pre-commit and is also checked for issues on Travis CI.
See the development board for a detailed development roadmap. Below are a short outline of important improvements:
omelettecommander with basic yargs and own logicA big thank you to the core team and all the contributers at 30-seconds-of-code for creating an awesome curated collection of snippets.
Creative Commons License
CC0 1.0 Universal
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 1.5.46Registry latest | 16 Nov 2021 | 40 | |
| 1.5.45 | 4 Nov 2021 | 40 | |
| 1.5.44 | 14 Oct 2021 | 40 | |
| 1.5.43 | 12 Oct 2021 | 40 | |
| 1.5.42 | 28 Sept 2021 | 41 | |
| 1.5.41 | 24 Sept 2021 | 41 | |
| 1.5.40 | 9 Sept 2021 | 41 | |
| 1.5.39 | 27 Aug 2021 | 41 | |
| 1.5.38 | 17 Aug 2021 | 41 | |
| 1.5.37 | 24 Jul 2021 | 41 | |
| 1.5.36 | 14 Jul 2021 | 41 | |
| 1.5.35 | 21 Jun 2021 | 41 | |
| 1.5.34 | 19 Jun 2021 | 41 | |
| 1.5.33 | 18 Jun 2021 | 41 | |
| 1.5.32 | 14 Jun 2021 | 41 | |
| 1.5.31 | 18 May 2021 | 41 | |
| 1.5.30 | 10 May 2021 | 41 | |
| 1.5.29 | 25 Apr 2021 | 41 | |
| 1.5.28 | 23 Apr 2021 | 41 | |
| 1.5.27 | 3 Apr 2021 | 41 |
This describes our collected data; it is not a security assessment.
Shared repository data · GitHub
Observed since 20 Oct, 19:23 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:409f5578104ec13ff5c849f91895a268e40c422d5b9629fb002f2dce8736df28