Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
M
Marsaud Smb2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Marsaud Smb2
Commits
d6576ce6
Commit
d6576ce6
authored
Jan 20, 2020
by
Julien Fontanet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat(package): format Markdown files with Prettier
parent
9db6519d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
9 deletions
+22
-9
README.md
README.md
+5
-5
RELEASE.md
RELEASE.md
+11
-0
TODO.md
TODO.md
+2
-0
package.json
package.json
+4
-4
No files found.
README.md
View file @
d6576ce6
...
@@ -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!
"
);
});
});
```
```
...
...
RELEASE.md
View file @
d6576ce6
# 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.md
View file @
d6576ce6
# 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
package.json
View file @
d6576ce6
...
@@ -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"
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment