brackify

1.0.1 • Public • Published

brackify

A small library that wraps things in brackets.

Installation

npm install brackify

Usage

var brackify = require('brackify');

var brackified = brackify('thing'); // Output should be (thing)

var brackified = brackify('{', 'thing'); // Output should be {thing}

var brackified = brackify('[', 'thing'); // Output should be [thing]

var brackified = brackify('<', 'thing'); // Output should be <thing>

Tests

npm test

Contributing

Take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code. Thanks.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.1
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.1
    1
  • 1.0.0
    0

Package Sidebar

Install

npm i brackify

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • stu