Skip to content

Commit

Permalink
Removes Bower support
Browse files Browse the repository at this point in the history
Closes #19
  • Loading branch information
scottcorgan committed Apr 18, 2017
1 parent 45eda6c commit 087f94b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 59 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 Scott Corgan
Copyright (c) 2017 Scott Corgan

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
32 changes: 4 additions & 28 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,37 +1,23 @@
# tiny-emitter

A tiny (less than 1k) event emitter library. Works using CommonJS ([Node](https://nodejs.org/en/), [Browserify](http://browserify.org), [Webpack](https://webpack.js.org/), etc.) and also [Bower](https://bower.io/).

[![browser support](https://ci.testling.com/scottcorgan/tiny-emitter.png)](https://ci.testling.com/scottcorgan/tiny-emitter)
A tiny (less than 1k) event emitter library.

## Install

### npm

```
npm install tiny-emitter --save
```

### Bower

```
bower install tiny-emitter --save
```

```html
<script src="bower_components/tiny-emitter/dist/tinyemitter.min.js"></script>
```

## Usage

### CommonJS (Node, Browserify, Webpack, etc.)

```js
var Emitter = require('tiny-emitter');
var emitter = new Emitter();

emitter.on('some-event', function (arg1, arg2, arg3) {
//
//
});

emitter.emit('some-event', 'arg1 value', 'arg2 value', 'arg3 value');
Expand All @@ -49,16 +35,6 @@ emitter.on('some-event', function (arg1, arg2, arg3) {
emitter.emit('some-event', 'arg1 value', 'arg2 value', 'arg3 value');
```


### Bower

```js
var emitter = new TinyEmitter();

emitter.on('some-event', someCallback);
emitter.emit('some-event');
```

## Instance Methods

### on(event, callback[, context])
Expand Down Expand Up @@ -92,7 +68,7 @@ Trigger a named event
* `arguments...` - any number of arguments to pass to the event subscribers

## Test and Build

Build (Tests, Browserifies, and minifies)

```
Expand Down
29 changes: 0 additions & 29 deletions bower.json

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tiny-emitter",
"version": "1.2.0",
"version": "2.0.0",
"description": "A tiny (less than 1k) event emitter library",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 087f94b

Please sign in to comment.