5.7.83 • Published 10 months ago

@taktikorg/praesentium-ipsam-quis v5.7.83

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

@taktikorg/praesentium-ipsam-quis

npm version dependencies Build Status Build status

Join our online chat at Gitter chat

Balena settings storage utilities.

Role

The intention of this module is to provide low level access to how balena persists settings in both the filesystem and the browser.

THIS MODULE IS LOW LEVEL AND IS NOT MEANT TO BE USED BY END USERS DIRECTLY.

Unless you know what you're doing, use the balena SDK instead.

Installation

Install @taktikorg/praesentium-ipsam-quis by running:

$ npm install --save @taktikorg/praesentium-ipsam-quis

Documentation

storage.getStorage(options) ⇒ storage

Kind: static method of storage
Summary: Get an instance of storage module
Access: public

ParamTypeDescription
optionsObjectoptions
options.dataDirectoryString | Falsethe directory to use for storage in Node.js or false to create an isolated in memory instance. Values other than false are ignored in the browser.

Example

// with es6 imports
import { getStorage } from '@taktikorg/praesentium-ipsam-quis';
// or with node require
const { getStorage } = require('@taktikorg/praesentium-ipsam-quis');

const storage = getStorage({
	dataDirectory: '/opt/cache/balena'
});

getStorage~set(name, value) ⇒ Promise

Kind: inner method of getStorage
Summary: Set a value
Access: public

ParamTypeDescription
nameStringname
value*value

Example

storage.set('token', '1234')

getStorage~get(name) ⇒ 'Promise' .<*>

Kind: inner method of getStorage
Summary: Get a value
Returns: 'Promise' .<*> - value or undefined
Access: public

ParamTypeDescription
nameStringname

Example

storage.get('token').then((token) => {
	console.log(token)
});

getStorage~has(name) ⇒ 'Promise' .<Boolean>

Kind: inner method of getStorage
Summary: Check if the value exists
Returns: 'Promise' .<Boolean> - has value
Access: public

ParamTypeDescription
nameStringname

Example

storage.has('token').then((hasToken) => {
	if (hasToken) {
		console.log('Yes')
	} else {
		console.log('No')
});

getStorage~remove(name) ⇒ Promise

Kind: inner method of getStorage
Summary: Remove a value
Access: public

ParamTypeDescription
nameStringname

Example

storage.remove('token')

getStorage~clear() ⇒ Promise

Kind: inner method of getStorage
Summary: Remove all values
Access: public
Example

storage.clear()

Support

If you're having any problem, please raise an issue on GitHub and the balena team will be happy to help.

Tests

Run the test suite by doing:

$ npm test

Contribute

Before submitting a PR, please make sure that you include tests, and that coffeelint runs without any warning:

$ npm run lint

License

The project is licensed under the Apache 2.0 license.

dateunicodeutilitiesES8metadatatoobjectjsonschemaspawngetintrinsiceverytypeoffastcopytouch@@toStringTagiamsomegetairbnb.envnamesvarreact-testing-librarydiffswfcss-in-jsformsymbolcomputed-typesObject.keysInt32ArraystringsubprocessRegExp.prototype.flagsfastbootstrap less$.extendconsttranspileroptiontypeerrorformslengthstreamscss lessphonelivetostringtaghttpendpointentriesless csscolordeeppropertyuser-streamsintrinsicworkerhasOwnPropertytransportdeep-clonecolumnwindowfindLastIndexpyyamllruvarskeysreversedi18ntypeshelperuuidIteratorInt8Arraysharedarraybuffertypedarraysmulti-packagedropglobalThispushdeterministicTypeBoxcurrieddependency managercallbindcopyyamlcurlglaciertoStringTaghot__proto__less mixinsroutekoreanweaksetcreatepersistentinspectpicomatchAsyncIteratortrimLeftdescriptionelasticachecommand-linehasOwnWeakSetes-shimsArray.prototype.flattenURLglobalsless compilersetUint32ArrayreduxendersameValueZerochaireversedeepcopypnpm9sestrimRightsuperagentloadingdependenciesflagargvdeletees6ESworkspace:*SymbolECMAScript 2018workflowJSON-Schemadirirqnativeutilses2017bindES6joigetOwnPropertyDescriptorshiminterruptsreact poseguidquotenodejsmkdireventEmittertddTypeScriptcall-bindinstallercommanddatastructureFunction.prototype.namestreamtermES2018amazonObject.isincludespredictablereusevaluesjsdiffvpcregexdatadescriptorschromiumfsfunctionalArray.prototype.includess3electroninstallhardlinksescapeharmonyfull-widthselfwarningmergebrowserslistpolyfillvalidatecrypto.gitignoretypescriptspeccodesstarterroute53windowsquerystringlintsignalsstylesmatchBigUint64Arraycompilera11ysimpledbsafereact animationexpressionbytearrayES2016lesscssbabelcolorsstructuredClonefnmatchhandlerseslint-pluginObject.values[[Prototype]]authenticationes2015form-validationelmwalkschemadotenvlinkmatchAllString.prototype.trimdataviewconfigurablemomentlistenersiterationcloudsearchshellcryptbabel-core-0nopejsdombinariesES2017Object.assignnametranspilerobustpreserve-symlinkscoerciblewaapiECMAScript 3cssapideep-copydataViewesmkdirsequalityWebSocketstringifyrequireposeregular-expressionfast-deep-copyloggercloudtrailsignedebsprotocol-bufferssharedbyteOffset
5.7.83

10 months ago

5.7.82

10 months ago

5.7.81

10 months ago

5.7.80

10 months ago

5.7.79

10 months ago

5.7.78

10 months ago

5.7.77

11 months ago

5.7.76

11 months ago

5.7.75

11 months ago

5.7.74

11 months ago

5.7.73

11 months ago

5.7.72

11 months ago

5.7.71

11 months ago

5.7.70

11 months ago

5.6.70

11 months ago

5.6.69

11 months ago

5.6.68

11 months ago

5.6.67

11 months ago

4.6.67

11 months ago

4.6.66

11 months ago

4.6.65

11 months ago

4.6.64

11 months ago

4.6.63

11 months ago

4.6.62

11 months ago

4.6.61

11 months ago

4.6.60

11 months ago

4.6.59

11 months ago

4.6.58

11 months ago

4.6.57

11 months ago

4.6.56

11 months ago

4.6.55

11 months ago

4.6.54

11 months ago

4.6.53

11 months ago

4.6.52

11 months ago

4.6.51

11 months ago

3.6.51

11 months ago

3.5.51

12 months ago

3.5.50

12 months ago

3.5.49

12 months ago

3.5.48

12 months ago

3.5.47

12 months ago

3.5.46

12 months ago

3.5.45

12 months ago

3.5.44

12 months ago

3.5.43

12 months ago

3.4.43

12 months ago

2.4.43

12 months ago

2.4.42

12 months ago

2.4.41

12 months ago

2.4.40

12 months ago

2.4.39

12 months ago

2.3.39

12 months ago

2.3.38

12 months ago

2.3.37

12 months ago

2.3.36

12 months ago

2.3.35

12 months ago

2.3.34

1 year ago

2.3.33

1 year ago

2.3.32

1 year ago

2.3.31

1 year ago

2.3.30

1 year ago

2.3.29

1 year ago

2.3.28

1 year ago

2.3.27

1 year ago

2.3.26

1 year ago

2.3.25

1 year ago

2.2.25

1 year ago

2.2.24

1 year ago

2.2.23

1 year ago

2.2.22

1 year ago

2.1.22

1 year ago

2.1.21

1 year ago

2.1.20

1 year ago

2.0.20

1 year ago

1.0.20

1 year ago

1.0.19

1 year ago

1.0.18

1 year ago

1.0.17

1 year ago

1.0.16

1 year ago

1.0.15

1 year ago

1.0.14

1 year ago

1.0.13

1 year ago

1.0.12

1 year ago

1.0.11

1 year ago

1.0.10

1 year ago

1.0.9

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago