Socket
Socket
Sign inDemoInstall

atajox-lib

Package Overview
Dependencies
83
Maintainers
3
Versions
23
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    atajox-lib

AtajoX API Library


Version published
Maintainers
3
Install size
28.9 MB
Created

Readme

Source

Global installs

$ npm install -g karma-cli $ npm install -g typescript typings

Available Plugins

cordova-plugin-app-version
cordova-plugin-battery-status
cordova-plugin-device
cordova-plugin-signal-strength
cordova-plugin-network-information

$ ionic cordova plugin add {plugin} --save';

Database Support

https://ionicframework.com/docs/storage/

Add to app.module.ts

IonicStorageModule.forRoot({ 
    name: 'atajo.client.database', 
    driverOrder: ['sqlite', 'websql'] 
}) 

Code Push Support

$ cordova plugin add https://github.com/k1dbl4ck/cordova-plugin-atajo-update.git Remember to remove the old code push first.

In Ionic2:

platform.ready(() => {

    atajoXConfig.set('domain', {your-domain-name});

    let update = new AtajoXUpdate();
    update.checkForUpdates();

});

The following events can be listened through atajoXEvents:

      'atajo:update:initialized',
      'atajo:update:filesystem:ready',
      'atajo:update:folder:ready',
      'atajo:update:error',
      'atajo:update:download:success',
      'atajo:update:download:error',
      'atajo:update:download:progress',
      'atajo:update:unzip:success',
      'atajo:update:unzip:error',
      'atajo:update:unzip:progress',
      'atajo:update:file:remove:success',
      'atajo:update:file:remove:error',
      'atajo:update:file:get:error'

Example:

import {atajoXEvents} from 'atajox-lib';
...
atajoXEvents.subscribe('atajo:update:file:remove:success', (data) => {
    // update installed successfully
});
...

Start tests

$ karma start

FAQs

Last updated on 04 Feb 2019

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc