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) { ...@@ -219,9 +219,9 @@ smb2Client.writeFile('path\\to\\my\\file.txt', 'Hello Node', function(err) {
> `smb2Client.truncate ( filename, length, callback )` > `smb2Client.truncate ( filename, length, callback )`
- `filename` String - `filename` String
- `length` Number - `length` Number
- `callback` Function - `callback` Function
Asynchronously truncate a file to a size of precisely length bytes. Asynchronously truncate a file to a size of precisely length bytes.
...@@ -229,8 +229,8 @@ Example: ...@@ -229,8 +229,8 @@ Example:
```javascript ```javascript
smb2Client.truncate('path\\to\\my\\file.txt', 10, function(err) { smb2Client.truncate('path\\to\\my\\file.txt', 10, function(err) {
if (err) throw err; if (err) throw err;
console.log("It's truncated!"); console.log("It's truncated!");
}); });
``` ```
......
# Releases # Releases
## 0.14.0 ## 0.14.0
- smb2.truncate - smb2.truncate
## 0.4.0 ## 0.4.0
- smb2.ensureDir - smb2.ensureDir
## 0.3.1 ## 0.3.1
- smb2.createReadStream - smb2.createReadStream
- smb2.createWriteSTream - smb2.createWriteSTream
## 0.2.6 ## 0.2.6
- fs.rename(oldPath, newPath, callback) - fs.rename(oldPath, newPath, callback)
## 0.2.5 ## 0.2.5
- BUG FIX: Make MessageId, ProcessId, SessionId unique at the connection level - BUG FIX: Make MessageId, ProcessId, SessionId unique at the connection level
## 0.2.4 ## 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 - 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 ## 0.2.3
- fs.rmdir(path, callback) - fs.rmdir(path, callback)
## 0.2.2 ## 0.2.2
- fs.mkdir(path, [mode], callback) - fs.mkdir(path, [mode], callback)
## 0.2.1 ## 0.2.1
- Add connection autoclose - Add connection autoclose
- socket error handling - socket error handling
- API documentation - API documentation
## 0.2.0 ## 0.2.0
- remove the connect function and make it called implicitly by every single function trying to interact with the share - remove the connect function and make it called implicitly by every single function trying to interact with the share
## 0.1.0 ## 0.1.0
- fs.unlinkFile(path, callback) - fs.unlinkFile(path, callback)
- fs.readdir(path, callback) - fs.readdir(path, callback)
- fs.readFile(filename, [options], callback) - fs.readFile(filename, [options], callback)
......
# TODO: # TODO:
## New functions ## New functions
- fs.appendFile(filename, data, [options], callback) - fs.appendFile(filename, data, [options], callback)
- fs.chmod(path, mode, callback) - fs.chmod(path, mode, callback)
- fs.stat(path, callback) - fs.stat(path, callback)
...@@ -9,5 +10,6 @@ ...@@ -9,5 +10,6 @@
- fs.watch(filename, [options], [listener]) - fs.watch(filename, [options], [listener])
## Implementation on existing functions ## Implementation on existing functions
- support of mode in mkdir - support of mode in mkdir
- support of mode in writeFile - support of mode in writeFile
...@@ -59,10 +59,10 @@ ...@@ -59,10 +59,10 @@
} }
}, },
"lint-staged": { "lint-staged": {
"*.js": [ "*.{js,md}": [
"prettier --write", "prettier --write",
"git add", "git add"
"eslint" ],
] "*.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