Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

erevna-services

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

erevna-services

modul untuk produk erevna

  • 1.4.1
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

####Erevna Services

fungsi-fungsi yang akan digunakan di seluruh produk erevna

###List Services

  • sync_rayasem_spreadseets contoh: sync_rayasem_spreadseets.synonym_property_types.run(options)

    contoh options: { localStorageKeyName:'property-types-synonym' }

  • getLocalstorage getLocalstorage(localStorageKeyName);

###fetch location from http://www.kemendagri.go.id/pages/data-wilayah cd services; node pdfprocessing;

###Update

  • v1.2

    • Dinamis file gdoc spreadsheet
    • Dinamis job function, yaitu bisa menggunakan function sendiri dalam mengolah data dari google spreadsheet
    • script: googleSpreadsheetSyncService.js

    daftar variable options:

      {
          creds:<file credential>,
          sheetnumber:<number sheet>,
          localStorageKeyName:<nama local storage key>,
          min_row:<minimal row ke berapa yang akan di olah>,
          max_row:<maximal row ke berapa yang akan di olah>,
          gdoc:<key gdoc>,
          job: <job function untuk mengolah data gdoc. ouput dalam bentuk json string>
      }
    

    contoh options:

      {
          creds:require('./service-account-creds.json'),
          sheetnumber:6,
          localStorageKeyName:'localstorage-gdoc-sync-sheet-6',
          min_row:2,
          max_row:200,
          gdoc:'1TRnVBn2b4S9ih6cygtnV0NLKoOcqRvcf88Lkxxxxxxx',
          job: function(cells){
              var list=[];
              var tempRow = '';
              var theKey = '';
              var dataJson = {};
              cells.forEach(function(v,k){                
                  if(v.col < 3){
                      if(tempRow != v.row){
                          tempRow = v.row;
                          theKey = v.value;
                          theKey = theKey.toLowerCase();
                      }else{
                          var v = v.value;
                          v = v.toLowerCase();
                          dataJson[theKey] = v;
                      }
                  }
              });
              return dataJson;
          }
      }
    

Keywords

FAQs

Package last updated on 16 Jun 2019

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc