Gathering detailed insights and metrics for ng6-file-man
Gathering detailed insights and metrics for ng6-file-man
Gathering detailed insights and metrics for ng6-file-man
Gathering detailed insights and metrics for ng6-file-man
npm install ng6-file-man
Typescript
Module System
Node Version
NPM Version
TypeScript (56.1%)
HTML (22.2%)
SCSS (17.88%)
JavaScript (3.82%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
26 Stars
244 Commits
21 Forks
4 Watchers
2 Branches
4 Contributors
Updated on Feb 08, 2025
Latest Version
9.1.0
Package Id
ng6-file-man@9.1.0
Unpacked Size
528.16 kB
Size
119.26 kB
File Count
59
NPM Version
10.8.2
Node Version
20.18.0
Published on
Oct 28, 2024
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
Angular File Manager library.
fontawesome@^5.1.1
Install ng6-file-man
npm install ng6-file-man
-- OR --
yarn add ng6-file-man
In angular.json
add to styles
"node_modules/ng6-file-man/assets/ng6-file-man-styles.scss",
Or use SASS in your project
//globalStyles.scss
@import "~ng6-file-man/assets/ng6-file-man-styles.scss";
Add module
// app.module.ts
import {FileManagerModule} from 'ng6-file-man';
...
@NgModule({
declarations: [
AppComponent
],
imports: [
FileManagerModule,
...
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule {
}
Create config in constructor
// app.component.ts
const treeConfig: ConfigInterface = {
baseURL: 'http://localhost:8080/',
api: {
listFile: 'api/file/list',
uploadFile: 'api/file/upload',
downloadFile: 'api/file/download',
deleteFile: 'api/file/remove',
createFolder: 'api/file/directory',
renameFile: 'api/file/rename',
searchFiles: 'api/file/search'
},
options: {
allowFolderDownload: DownloadModeEnum.DOWNLOAD_FILES, //alternatively DOWNLOAD_DISABLED,DOWNLOAD_ALL
showFilesInsideTree: false,
openFolderOnDoubleClick: true,
showFolderOptions: false
}
};
Then save your TreeConfig and create new TreeModel
// app.component.ts
this.tree = new TreeModel(treeConfig)
Finaly, add it into html
<fm-file-manager [tree]="tree"></fm-file-manager>
UPDATE: Express API availible at https://github.com/Chiff/ng6-file-man-express
Method
Parameters we are sending
localhost:8080/api/file/list?parentPath=/folder1/folder2
)We are expecting response
{
size: string // e.g. '3 KB'
url?: string // download url
id: string | number; // id can be path or database id
dir: bool // is current node dir?
path: string // path to current item (e.g. /folder1/someFile.txt)
name?: string // optional (but we are using id as name if name is not present) (e.g. someFile.txt)
}
This request is in form for Fine Uploader traditional server
Params
Method
Parameters we are sending
localhost:8080/api/file/download?path=/folder1/someFile.txt
)Method
Parameters we are sending
(e.g. localhost:8080/api/file/directory?parentPath=/folder1&dirName=newDir
)
Method
Parameters we are sending
(e.g. localhost:8080/api/file/remove?path=/folder1/newDir
)
Method
Parameters we are sending
(e.g. localhost:8080/api/file/rename?path=/folder1/newDir&newName=newDirName
)
Method
Parameters we are sending
(e.g. localhost:8080/api/file/search?query=searchTerm
)
We are expecting response
{
size: string // e.g. '3 KB'
url?: string // download url
id: string | number; // id can be path or database id
dir: bool // is current node dir?
path: string // path to current item (e.g. /folder1/someFile.txt)
name?: string // optional (but we are using id as name if name is not present) (e.g. someFile.txt)
}
<fm-file-manager (itemClicked)="itemClicked($event)" ... ></fm-file-manager>
Event Types
Every event has node
property
name | type | required | default value |
---|---|---|---|
tree | TreeModel | true | - |
whiteList | string[] | false | null |
isPopup | bool | false | false |
allowRename | bool | false | false |
language | string | false | 'en' |
iconTemplate | TemplateRef | false | - |
folderContentTemplate | TemplateRef | false | - |
folderContentBackTemplate | TemplateRef | false | - |
folderContentNewTemplate | TemplateRef | false | - |
sideViewTemplate | TemplateRef | false | - |
loadingOverlayTemplate | TemplateRef | false | - |
!default
variables//globalStyles.scss
$main-color: #626e80;
$text-color: black;
$contrast-color: white;
$hasAnimations: false;
$border-radius: 20px;
@import "~ng6-file-man/assets/ng6-file-man-styles.scss";
<fm-file-manager [iconTemplate]="iconTemplate" ... ></fm-file-manager>
<!-- #iconTemplate is required, let-node is reference to node-->
<ng-template let-node #iconTemplate>
<i class="fas fa-arrow-alt-circle-right" style="padding: 5px"></i>
{{node.name}}
</ng-template>
Explanation
Template Name | Template input | Input Type | Template Function |
---|---|---|---|
iconTemplate | let-node | NodeInterface | Tree view node template |
folderContentTemplate | let-node | NodeInterface | Folder content node template |
folderContentBackTemplate | let-node | NodeInterface | Back button in folder content |
folderContentNewTemplate | let-node | NodeInterface | New button in folder content |
sideViewTemplate | let-node | NodeInterface | Data inside side view |
loadingOverlayTemplate | let-timeoutMessage | string | loading overlay screen |
|--------------------------------------------------|
| Nav Bar Search |
|--------------------------------------------------|
| | | |
| | | |
| Tree | Folder | Side |
| View | Content | View |
| | | |
| | | |
|--------------------------------------------------|
Note: in pictures above there are no translations availible, words will be translated after [lang].json is filled
i18n
file from ~node_modules/ng6-file-man/assets
~src/assets/i18n/[language].json
(e.g. ~src/assets/i18n/fr.json
)"Download": "Télécharger"
)<fm-file-manager [language]="'fr'" ... ></fm-file-manager>
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
ng6-file-name | angular |
---|---|
4.0.0 | 14.3.0 |
5.0.0 | 15.2.8 |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
66 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More