New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

bang

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bang

Text snippets on the command line.

  • 1.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-41.67%
Maintainers
1
Weekly downloads
 
Created
Source

build status

Bang

Bang is a command line tool for quick storage and retriveal of text snippets. It is inspired by and very similar to holman's Boom. The main difference is that Bang has no concept of lists: it is only one level deep. It also has a simpler interface to avoid accidentally creating stuff.

Installation

Requirements:

  • Node
  • npm

Then:

$ npm install -g bang

Get help

$ bang -h

Or, if you have not yet stored any data, simply run bang.

Add a snippet

$ bang jimmy http://jimmycuadra.com/

Retrieve a snippet

$ bang jimmy
http://jimmycuadra.com/

The value is copied to your clipboard.

Delete a snippet

$ bang -d jimmy

List all snippets

$ bang
  jimmy: http://jimmycuadra.com/
   mtnt: http://morethingsneed.to/
address: 237 Overlook Street

Storage

Bang's data is serialized to JSON and peristed to a file at ~/.bang. If you want to share your Bang data across multiple machines, you can move the file to Dropbox or some other type of network disk, and then symlink it to ~/.bang on your local machine.

Using Bang programmatically

Bang can also be used from a Node program directly. Simply require("bang") to import the core Bang class with access to all the CRUD methods.

Tests

Bang includes a comprehensive test suite using Jasmine. To run it:

$ npm install -g coffee-script
$ git clone http://github.com/jimmycuadra/bang.git
$ cd bang
$ npm install
$ cake spec

For continuous testing, use cake watch. This also rebuilds CoffeeScript files whenever the tests are run.

FAQs

Package last updated on 14 Mar 2013

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

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc