Skip to content

Commit

Permalink
#12 added browser support
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenPioneer committed Mar 18, 2018
1 parent 6e21b49 commit c7bea3a
Show file tree
Hide file tree
Showing 7 changed files with 3,900 additions and 14 deletions.
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,17 @@ try to find a way to parse it. We now support sending in a string of what type (

## Installation
```sh
# NPM
npm install auto-parse --save
# YARN
yarn add auto-parse
```

## Whats New

* [#12 Browser Support](https://github.com/greenpioneersolutions/auto-parse/issues/12)
* [#11 Removed Lodash](https://github.com/greenpioneersolutions/auto-parse/issues/11)

## Documentation

### autoParse(input, type)
Expand Down Expand Up @@ -95,12 +103,26 @@ autoParse('#AAA', Color) => {color: '#AAA'}
- [Check out JS Fiddle Example](https://jsfiddle.net/greenpioneer/4y744xyd/)

#### Other Uses

Lodash

``` js
// Lodash Mixin
var autoParse = require('auto-parse')
_.mixin({'autoParse':autoParse})
```

Browser Support

``` html
<h1>Auto Parse </h1>
<script src="/node_modules/auto-parse/dist/auto-parse.min.js"></script>
<script>
autoParse('true')
autoParse('Green Pioneer')
</script>
```

## License

The MIT License (MIT)
Expand Down
Loading

0 comments on commit c7bea3a

Please sign in to comment.