Skip to content
This repository has been archived by the owner on Oct 21, 2022. It is now read-only.

Latest commit

 

History

History
39 lines (26 loc) · 1.17 KB

README.md

File metadata and controls

39 lines (26 loc) · 1.17 KB

The project has moved to monorepo. See https://github.com/pownjs/pown for more information.

Follow on Twitter NPM Fury default workflow SecApps

Pown Preferences

Utility library for working with Pown.js preferences.

Quickstart

Install this module from the root of your project:

$ npm install @pown/preferences --save

Once done, list all installed pown preferences like this:

const pownPreferences = require('@pown/preferences')

pownPreferences.getPreferences('something', (err, preferences) => {
	// do something with preferences
})

You can also use promises with async/await like this:

const pownPreferences = require('@pown/preferences')

const preferences = async pownPreferences.getPreferences('something')

// do something with preferences