Skip to content

Commit

Permalink
Updated package name and Readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
grjan7 committed Jan 8, 2023
1 parent 0c8dabf commit a209592
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# base64 library
# b64-cjs

[![NPM version](https://img.shields.io/npm/v/b64-cjs.svg)](https://www.npmjs.com/package/b64-cjs)
[![NPM downloads](https://img.shields.io/npm/dm/b64-cjs.svg)](https://www.npmjs.com/package/b64-cjs)
Expand All @@ -9,14 +9,14 @@ A library to encode to and decode from base64, similar to atob btoa of native Ja
## Installation

```sh
$ npm install base64-cjs
$ npm install b64-cjs
```

## base64.encode(plainStr)

```js

import Base64 from 'base64';
const Base64 = require('b64-cjs');

const myObj = {name: "john", age: 30};
const myObjString = JSON.stringify(myObj);
Expand All @@ -30,7 +30,7 @@ A library to encode to and decode from base64, similar to atob btoa of native Ja

```js

import Base64 from 'base64';
const Base64 = require('b64-cjs');

const myObj = {name: "john", age: 30};
const myObjString = JSON.stringify(myObj);
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@
"index.js",
"lib/"
],
"homepage": "https://github.com/grjan7/base64-cjs#readme",
"homepage": "https://github.com/grjan7/b64-cjs#readme",
"repository": {
"type": "git",
"url": "https://github.com/grjan7/base64-cjs.git"
"url": "https://github.com/grjan7/b64-cjs.git"
},
"bugs": {
"url": "https://github.com/grjan7/base64-cjs/issues"
"url": "https://github.com/grjan7/b64-cjs/issues"
},
"author": "Jana Rangasamy <janagr7@gmail.com>",
"license": "ISC"
Expand Down

0 comments on commit a209592

Please sign in to comment.