Skip to content

Commit

Permalink
Merge pull request #9 from logiqsystem/v0.1.1
Browse files Browse the repository at this point in the history
v0.1.1
  • Loading branch information
marxjmoura authored Jan 6, 2019
2 parents 35c989c + 0d11c6d commit 938653f
Show file tree
Hide file tree
Showing 36 changed files with 1,379 additions and 360 deletions.
6 changes: 3 additions & 3 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
var config = {
presets: ["@babel/preset-env"]
presets: ['@babel/preset-env']
};

if (process.env.NODE_ENV.match(/test/)) {
config.plugins = [
["istanbul", {
"exclude": ["src/!(lib)/**/*.js"]
['istanbul', {
'exclude': ['src/!(lib)/**/*.js']
}]
];
}
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
###############
node_modules/
coverage/
.vscode/
############
# Packages #
############
Expand Down
3 changes: 2 additions & 1 deletion .vscode/settings.json → .vscode.default/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,
"files.exclude": {
"**/node_modules": true
"**/node_modules": true,
"**/.vscode.default": true
},
"[markdown]": {
"files.trimTrailingWhitespace": false
Expand Down
12 changes: 10 additions & 2 deletions .webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
var path = require('path');
const webpack = require('webpack');
const path = require('path');

const header = `InOut.js v0.1.1 (https://github.com/logiqsystem/inoutjs)
Copyright 2018 LogiQ System (https://logiqsystem.com)
Licensed under MIT (https://github.com/logiqsystem/inoutjs/blob/master/LICENSE)`;

module.exports = {
mode: process.env.NODE_ENV.match(/production/) ? 'production' : 'development',
Expand All @@ -16,5 +21,8 @@ module.exports = {
use: { loader: 'babel-loader' }
}
]
}
},
plugins: [
new webpack.BannerPlugin(header)
]
};
12 changes: 8 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
## [v0.1.0](https://github.com/marxjmoura/inoutjs/releases/tag/v0.1.0) (2018-12-14)
## [v0.1.1](https://github.com/logiqsystem/inoutjs/releases/tag/v0.1.1) (2019-01-06)
### Info:
- Update project URLs

## [v0.1.0](https://github.com/logiqsystem/inoutjs/releases/tag/v0.1.0) (2018-12-14)
### Features:
- `write()`
- `writeLine()`
- `save()`

## [v0.1.0-beta.3](https://github.com/marxjmoura/inoutjs/releases/tag/v0.1.0-beta.3) (2018-12-12)
## [v0.1.0-beta.3](https://github.com/logiqsystem/inoutjs/releases/tag/v0.1.0-beta.3) (2018-12-12)
### Breaking changes:
- Rename `contentType()` to `type()`
### Features:
Expand All @@ -14,14 +18,14 @@
- `lowerOrEqual()`
- `readChunk()`

## [v0.1.0-beta.2](https://github.com/marxjmoura/inoutjs/releases/tag/v0.1.0-beta.2) (2018-12-11)
## [v0.1.0-beta.2](https://github.com/logiqsystem/inoutjs/releases/tag/v0.1.0-beta.2) (2018-12-11)
### Features:
- `fullName()`
- `name()`
- `ext()`
- `contentType()`
- `size()`

## [v0.1.0-beta.1](https://github.com/marxjmoura/inoutjs/releases/tag/v0.1.0-beta.1) (2018-12-08)
## [v0.1.0-beta.1](https://github.com/logiqsystem/inoutjs/releases/tag/v0.1.0-beta.1) (2018-12-08)
### Features:
- `readLine()`
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2018 Marx J. Moura
Copyright (c) 2018 LogiQ System

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
# InOut.js - I/O JavaScript library

[![CircleCI](https://circleci.com/gh/marxjmoura/inoutjs.svg?style=shield)](https://circleci.com/gh/marxjmoura/inoutjs)
[![codecov](https://codecov.io/gh/marxjmoura/inoutjs/branch/master/graph/badge.svg)](https://codecov.io/gh/marxjmoura/inoutjs)
[![CircleCI](https://circleci.com/gh/logiqsystem/inoutjs.svg?style=shield)](https://circleci.com/gh/logiqsystem/inoutjs)
[![codecov](https://codecov.io/gh/logiqsystem/inoutjs/branch/master/graph/badge.svg)](https://codecov.io/gh/logiqsystem/inoutjs)
[![NPM version](https://img.shields.io/npm/v/inoutjs.svg)](https://npmjs.org/package/inoutjs)
[![NPM downloads](https://img.shields.io/npm/dm/inoutjs.svg)](https://npmjs.org/package/inoutjs)
[![devDependency Status](https://img.shields.io/david/dev/marxjmoura/inoutjs.svg)](https://david-dm.org/marxjmoura/inoutjs?type=dev)
[![JS gzip size](https://img.badgesize.io/marxjmoura/inoutjs/master/dist/inout.min.js?compression=gzip&label=JS+gzip+size)](https://github.com/marxjmoura/inoutjs/blob/master/dist/inout.min.js)
[![devDependency Status](https://img.shields.io/david/dev/logiqsystem/inoutjs.svg)](https://david-dm.org/logiqsystem/inoutjs?type=dev)
[![JS gzip size](https://img.badgesize.io/logiqsystem/inoutjs/master/dist/inout.min.js?compression=gzip&label=JS+gzip+size)](https://github.com/logiqsystem/inoutjs/blob/master/dist/inout.min.js)

## Getting started

```
$ npm install inoutjs
```

[or download the latest release](https://github.com/marxjmoura/inoutjs/releases/)
[or download the latest release](https://github.com/logiqsystem/inoutjs/releases/)

## Usage

Expand Down Expand Up @@ -82,7 +82,7 @@ var size = io(file).size('MB'); // Options: B, KB, MB, GB

```js
io(file).readChunk(function (chunk, next) {
console.log(chunk);
console.log(chunk === undefined ? 'EOF' : chunk);
next(); // Read next chunk
});
```
Expand Down Expand Up @@ -153,3 +153,7 @@ io(file).lowerThan(100, 'KB'); // Options: B, KB, MB, GB
```js
io(file).lowerOrEqual(100, 'KB'); // Options: B, KB, MB, GB
```

## Contact us

If you have any questions, detect a bug or need a new feature, please, fell free to [open a new issue](https://github.com/logiqsystem/inoutjs/issues/new) on GitHub.
6 changes: 5 additions & 1 deletion dist/inout.min.js

Large diffs are not rendered by default.

24 changes: 24 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
@@ -1 +1,25 @@
/*
* MIT License
*
* Copyright (c) 2018 LogiQ System
*
* 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.
*/

import './src/inout'
Loading

0 comments on commit 938653f

Please sign in to comment.