Skip to content

Commit

Permalink
Rebuilt readme with tldw
Browse files Browse the repository at this point in the history
  • Loading branch information
Jaid committed May 23, 2021
1 parent 1868b0e commit 69c324f
Showing 1 changed file with 18 additions and 25 deletions.
43 changes: 18 additions & 25 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,25 @@ npm install --save @jaid/read-file-json@^1.0.2

## Example


```javascript
import readFileJson from "read-file-json"

readFileJson("./doesNotExist.json5").then(result => {
readFileJson("./exists.json5").then(result => {

})

readFileJson("./doesNotExist.json5").then(result2 => {

})
```

Variable `result` will now be:
Variable `result` will be:

```javascript
["a", "b", "c"]
```
Variable `result2` will be:

```javascript
null
Expand All @@ -62,6 +72,10 @@ null







## Development


Expand All @@ -83,26 +97,5 @@ npm run test


## License
```text
MIT License
Copyright © 2020, Jaid <[email protected]> (github.com/jaid)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```
[MIT License](https://raw.githubusercontent.com/jaid/read-file-json/master/license.txt)
Copyright © 2021, Jaid \<[email protected]> (https://github.com/jaid)

0 comments on commit 69c324f

Please sign in to comment.