Skip to content

Commit

Permalink
add Ellipsis and existInThisRadius'
Browse files Browse the repository at this point in the history
  • Loading branch information
raitalharehman committed Feb 21, 2019
1 parent b9e5e60 commit c309568
Show file tree
Hide file tree
Showing 5 changed files with 68 additions and 1,601 deletions.
15 changes: 15 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
ISC License

Copyright (c) 2019, Talha Rehman

Permission to use, copy, modify, and/or distribute this software for any
purpose with or without fee is hereby granted, provided that the above
copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
26 changes: 22 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# behnaNPM
This package is about some cool funtions like
## Funtions
- [Ellipsis](#About)
- [existInThisRadius](#About)
- [getSize](#About)

## Installation
Expand All @@ -9,11 +11,27 @@ npm i behna
```
## Example
```sh
import {getSize} from 'behna';
console.log("result",getSize(obj));
import {getSize, existInThisRadius, Ellipsis} from 'behna';
console.log("getSize =",getSize(obj));
console.log("existInThisRadius =",existInThisRadius({ lat: 31.449865899999995, lng: 74.2968439 }, { lat: 31.5204, lng: 74.3587 }, 10));
console.log("Ellipsis =",<Ellipsis title="Ms Water Internship" limit="15" />);
```
## About
getSize tells size(Memory) of oj that <br>
[Npm Package](https://www.npmjs.com/package/behna)
**getSize** tells size(Memory) of oj that <br>
**existInThisRadius** tells You location Exist in Radius or not
```
Params(myLocation,AreaLocation,km)
mylocation is my lat, lng
AreaLocation is Region or City Like Lahore lat lng
km is Radius Size in Kilimeters
```
**Ellipsis** will show `...` in the end of line after given limit
```
<Ellipsis title="Ms Water Internship" limit="15" />
```
### License
Behna is [MIT licensed](./LICENSE).
Loading

0 comments on commit c309568

Please sign in to comment.