Commit d6576ce6 authored by Julien Fontanet's avatar Julien Fontanet

feat(package): format Markdown files with Prettier

parent 9db6519d
......@@ -219,9 +219,9 @@ smb2Client.writeFile('path\\to\\my\\file.txt', 'Hello Node', function(err) {
> `smb2Client.truncate ( filename, length, callback )`
- `filename` String
- `length` Number
- `callback` Function
- `filename` String
- `length` Number
- `callback` Function
Asynchronously truncate a file to a size of precisely length bytes.
......@@ -229,8 +229,8 @@ Example:
```javascript
smb2Client.truncate('path\\to\\my\\file.txt', 10, function(err) {
if (err) throw err;
console.log("It's truncated!");
if (err) throw err;
console.log("It's truncated!");
});
```
......
# Releases
## 0.14.0
- smb2.truncate
## 0.4.0
- smb2.ensureDir
## 0.3.1
- smb2.createReadStream
- smb2.createWriteSTream
## 0.2.6
- fs.rename(oldPath, newPath, callback)
## 0.2.5
- BUG FIX: Make MessageId, ProcessId, SessionId unique at the connection level
## 0.2.4
- refactor lib/smb2.js: now every single api is in the lib/api folder, connection and message forging has been also externalized under tools
## 0.2.3
- fs.rmdir(path, callback)
## 0.2.2
- fs.mkdir(path, [mode], callback)
## 0.2.1
- Add connection autoclose
- socket error handling
- API documentation
## 0.2.0
- remove the connect function and make it called implicitly by every single function trying to interact with the share
## 0.1.0
- fs.unlinkFile(path, callback)
- fs.readdir(path, callback)
- fs.readFile(filename, [options], callback)
......
# TODO:
## New functions
- fs.appendFile(filename, data, [options], callback)
- fs.chmod(path, mode, callback)
- fs.stat(path, callback)
......@@ -9,5 +10,6 @@
- fs.watch(filename, [options], [listener])
## Implementation on existing functions
- support of mode in mkdir
- support of mode in writeFile
......@@ -59,10 +59,10 @@
}
},
"lint-staged": {
"*.js": [
"*.{js,md}": [
"prettier --write",
"git add",
"eslint"
]
"git add"
],
"*.js": "eslint"
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment