Skip to content

Commit

Permalink
Merge branch 'release/1.5.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
GreenPioneer committed Mar 18, 2018
2 parents 6e21b49 + ddbcdb3 commit a8557a7
Show file tree
Hide file tree
Showing 8 changed files with 6,047 additions and 16 deletions.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,18 @@
try to find a way to parse it. We now support sending in a string of what type (e.g. "boolean") or constructor (e.g. Boolean)

## Installation
```sh
``` bash
# 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 a8557a7

Please sign in to comment.