Package Exports
- write-safari-reading-list
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (write-safari-reading-list) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
write-safari-reading-list
Write Safari Reading List.
Install
npm install write-safari-reading-list --save
Usage
var writeList = require('write-safari-reading-list');
writeList('./Bookmarks.plist', [
{
title: 'https://www.npmjs.com/package/axe-core',
description: 'Accessibility engine for automated Web UI testing',
url: 'https://www.npmjs.com/package/axe-core',
dateAdded: new Date('2016-07-31T09:11:41.000Z')
},
{
title: '“Array” Methods',
description: '_.chunk(array, [size=1]) # Ⓢ Ⓝ Creates an array of elements ...',
url: 'https://lodash.com/docs',
dateAdded: new Date('2016-07-31T12:36:22.000Z')
}
])
.then(function () {
console.log('Done!');
});
API
writeList(filePath, data)
Returns: Promise
Writes property list to file with provided data. If property list exists at the path it reuses it, otherwise uses basic template for generating property list file.
filePath
Type: String
Default: ~/Library/Safari/Bookmarks.plist
Path to property list.
data
Type: Object[]
List of Reading List links.
License
MIT © Ivan Nikolić