Skip to content

Commit 5fac87a

Browse files
committed
Updated license and updated readme
1 parent 439a490 commit 5fac87a

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Data Structures in Javascript
1010
There are neither a lot of resources on internet nor any book which guides and dictates best practices in the implementation of popular Data Structures using Javascript. The purpose of this library is to provide cooked implementation of populare data structures in javascript.
1111

1212
# Installation
13-
npm - `npm install es6-data-structures`
13+
npm - `npm install @js-labs/data-structures`
1414

1515
# Getting hands dirty
1616
Clone the repo
@@ -73,7 +73,7 @@ and will be published in
7373
Import BST class and instantiate it
7474

7575
```js
76-
import { BST } from 'es6-data-structures/lib/ds';
76+
import { BST } from '@js-labs/data-structures/lib/ds';
7777
const bst = new BST
7878
```
7979

@@ -121,7 +121,7 @@ bst.delete(20);
121121
Import Graph class and instantiate it and create an object of adjacency list implementation of Graph. To create a directed graph pass the string argument '**directed**'. If the Graph class is called without a parameter then by default its undirected graph.
122122

123123
```js
124-
import { Graph } from 'es6-data-structures/lib/ds';
124+
import { Graph } from '@js-labs/data-structures/lib/ds';
125125
const graph = new Graph; // this will create an undirected Graph
126126
const graph = new Graph('directed'); // this will create a directed graph or diGraph
127127

@@ -169,7 +169,7 @@ adjList.getEdgeWeight('A', 'B');
169169
Import Queue class and create a queue object.
170170

171171
```js
172-
import { Queue } from 'es6-data-structures/lib/ds';
172+
import { Queue } from '@js-labs/data-structures/lib/ds';
173173
const queue = new Queue;
174174
```
175175

@@ -203,7 +203,7 @@ queue.clear() // this will empty the queue
203203
Import LinkedList data structure and create a list object.
204204

205205
```js
206-
import { LinkedList } from 'es6-data-structures/lib/ds';
206+
import { LinkedList } from '@js-labs/data-structures/lib/ds';
207207
const list = new LinkedList;
208208
```
209209

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@js-labs/data-structures",
3-
"version": "1.0.0-pre-alpha-5",
3+
"version": "1.0.0-pre-alpha-6",
44
"description":
55
"There are neither a lot of resources on internet nor any book which guides and dictates best practices in the implementation of popular Data Structures using Javascript. The purpose of this library is to provide cooked implementation of populare data structures in javascript.",
66
"main": "index.js",
@@ -20,8 +20,8 @@
2020
"test:travis": "export WEBPACK_ENV=dev; karma start --single-run",
2121
"coveralls":
2222
"cat ./coverage/*/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage",
23-
"prepublish": "npm build & npm run dev",
24-
"build&publish": "npm run prepublish & npm publish"
23+
"prepare": "npm run build & npm run dev",
24+
"publish": "npm publish --access public"
2525
},
2626
"keywords": [
2727
"data-structures",
@@ -35,7 +35,7 @@
3535
"name": "Abhishek Prakash",
3636
"email": "abhishekabby@gmail.com"
3737
},
38-
"license": "ISC",
38+
"license": "MIT",
3939
"devDependencies": {
4040
"babel-cli": "^6.26.0",
4141
"babel-core": "^6.1.18",

0 commit comments

Comments
 (0)