Skip to content

Commit 4746ec6

Browse files
committed
update install docs (removing bower)
1 parent 07a1f81 commit 4746ec6

File tree

2 files changed

+14
-23
lines changed

2 files changed

+14
-23
lines changed

README.md

+14-14
Original file line numberDiff line numberDiff line change
@@ -6,30 +6,30 @@ TinyColor is a small, fast library for color manipulation and conversion in Java
66

77
[![Build Status](https://travis-ci.org/bgrins/TinyColor.png?branch=master)](https://travis-ci.org/bgrins/TinyColor)
88

9-
## Including in a browser
10-
11-
Download [tinycolor.js](https://raw.githubusercontent.com/bgrins/TinyColor/master/tinycolor.js) or install it with bower:
12-
13-
bower install tinycolor
14-
15-
Then just include it in the page in a `script` tag:
16-
```html
17-
<script type='text/javascript' src='tinycolor.js'></script>
18-
<script type='text/javascript'>
19-
var color = tinycolor("red");
20-
</script>
21-
```
229
## Including in node
2310

24-
`tinycolor` may also be included as a [node](http://nodejs.org/) module like so:
11+
`tinycolor` can be installed from npm:
2512

2613
npm install tinycolor2
2714

2815
Then it can be used in your script like so:
16+
2917
```js
3018
var tinycolor = require("tinycolor2");
3119
var color = tinycolor("red");
3220
```
21+
22+
## Including in a browser
23+
24+
The package can be bundled from npm, or you can use it directly in a script tag by downloading [tinycolor.js](https://raw.githubusercontent.com/bgrins/TinyColor/master/tinycolor.js):
25+
26+
```html
27+
<script type='text/javascript' src='tinycolor.js'></script>
28+
<script type='text/javascript'>
29+
var color = tinycolor("red");
30+
</script>
31+
```
32+
3333
## Usage
3434

3535
Call `tinycolor(input)` or `new tinycolor(input)`, and you will have an object with the following properties. See Accepted String Input and Accepted Object Input below for more information about what is accepted.

bower.json

-9
This file was deleted.

0 commit comments

Comments
 (0)