Skip to content

Commit 3b7cff0

Browse files
author
Pete Martin
committed
rename package to use dash casing (#1)
1 parent 5597a5f commit 3b7cff0

File tree

6 files changed

+14
-12
lines changed

6 files changed

+14
-12
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,20 @@ Encapsulation of Nick Galbreath's base64.js library for AngularJS
77
### Bower
88

99
```
10-
bower install ngBase64
10+
bower install angular-base64
1111
```
1212

13+
**NB:** The `ngBase64` bower package is deprecated.
14+
1315
```html
14-
<script src="bower_components/ngBase64/ngBase64.min.js"></script>
16+
<script src="bower_components/ngBase64/angular-base64.js"></script>
1517
```
1618

1719
## Usage
1820

1921
```javascript
2022
angular
21-
.module('myApp', ['ngBase64'])
23+
.module('myApp', ['base64'])
2224
.controller('myController', [
2325

2426
'$base64', '$scope',

ngBase64.js renamed to angular-base64.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
* then an exception is thrown.
5454
*/
5555

56-
angular.module('ngBase64', []).constant('$base64', {
56+
angular.module('base64', []).constant('$base64', {
5757
PADCHAR: '=',
5858
ALPHA: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',
5959
getbyte64: function(s,i) {

angular-base64.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bower.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
2-
"name": "ngBase64",
3-
"version": "1.0.1",
2+
"name": "angular-base64",
3+
"version": "2.0.0",
44
"main": [
5-
"ngBase64.js",
6-
"ngBase64.min.js"
5+
"angular-base64.js",
6+
"angular-base64.min.js"
77
],
88
"ignore": [
99
"package.json",

ngBase64.min.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"name": "ngBase64",
3-
"version": "1.0.1",
2+
"name": "angular-base64",
3+
"version": "2.0.0",
44
"author": "Ninjatronic",
55
"description": "Base64 Conversion for AngularJS Apps",
66
"contributors": [
@@ -14,7 +14,7 @@
1414
],
1515
"repository": {
1616
"type": "git",
17-
"url": "https://github.com/ninjatronic/ngBase64.git"
17+
"url": "https://github.com/ninjatronic/angular-base64.git"
1818
},
1919
"devDependencies": {
2020
"grunt": "",

0 commit comments

Comments
 (0)