Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mkht/dscr_netscapebookmark
https://github.com/mkht/dscr_netscapebookmark
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/mkht/dscr_netscapebookmark
- Owner: mkht
- License: mit
- Created: 2021-08-07T17:38:50.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-12-14T15:33:43.000Z (about 3 years ago)
- Last Synced: 2024-11-02T11:50:02.156Z (about 2 months ago)
- Language: PowerShell
- Size: 50.8 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
DSCR_NetscapeBookmark
====[![DSCR_NetscapeBookmark_Test](https://github.com/mkht/DSCR_NetscapeBookmark/actions/workflows/test.yml/badge.svg)](https://github.com/mkht/DSCR_NetscapeBookmark/actions/workflows/test.yml)
PowerShell DSC Resource to create Netscape format bookmark file.
----
## Installation
You can install from [PowerShell Gallery](https://www.powershellgallery.com/packages/DSCR_NetscapeBookmark/).
```Powershell
Install-Module -Name DSCR_NetscapeBookmark
```----
### Examples#### Example configuration
```Powershell
Configuration Example1
{
Import-DscResource -ModuleName DSCR_NetscapeBookmark
NetscapeBookmarkFolder FolderSample
{
Ensure = 'Present'
Path = 'C:\bookmark.html' # Key property
Title = 'Bookmark Folder' # Key property
AddDate = [datetime]'2021/8/1 12:00:00'
ModifiedDate = [datetime]'2021/8/1 12:00:00'
Attributes = @{'PERSONAL_TOOLBAR_FOLDER' = 'true'}
}NetscapeBookmarkLink GoogleLink
{
Ensure = 'Present'
Path = 'C:\bookmark.html' # Key property
Folder = 'Bookmark Folder' # Key property
Title = 'Google' # Key property
Url = 'https://www.google.com/' # Require property
AddDate = [datetime]'2021/8/1 12:00:00'
ModifiedDate = [datetime]'2021/8/1 12:00:00'
IconData = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg=='
}
}
```#### Output
```htmlBookmarks
Bookmarks
-
Bookmark Folder
```
----
## ChangeLog
### 1.1.0
+ It is no longer possible to specify a date prior to the Unix epoch (`1970-01-01 00:00:00`).
+ Fixed an issue of unstable operation when the Unix epoch is specified as date properties.
### 1.0.0
+ First public release
----
## Libraries
This software uses below libraries.
+ [Dissimilis/BookmarksManager](https://github.com/Dissimilis/BookmarksManager)
- Copyright (c) 2014 Marius Vitkevičius
Licensed under the **MIT License**.
https://github.com/Dissimilis/BookmarksManager/blob/master/LICENSE