Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/mkht/dscr_netscapebookmark


https://github.com/mkht/dscr_netscapebookmark

Last synced: about 1 month ago
JSON representation

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
```html

Bookmarks

Bookmarks






Bookmark Folder







Google





```

----
## 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