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

apps-script-db

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apps-script-db

> A module to prodive a simple key-value based database by [Google Apps Script](https://developers.google.com/apps-script/)

  • 0.2.1
  • npm
  • Socket score

Version published
Weekly downloads
6
increased by50%
Maintainers
1
Weekly downloads
 
Created
Source

Apps Script DB

A module to prodive a simple key-value based database by Google Apps Script

Get Database Url

  1. Go to https://script.google.com/home
  2. Create a script with content of db.js file and save with any project name you wants
  3. Click "Publish" -> "Deploy as web app..."
  4. Set "Who has access to the app:" to "Anyone, even anonymous"
  5. Click "Deploy" and get the url

Usage

npm i --save apps-script-db

const ADB = require('apps-script-db')
const db = new ADB(YOUR_DATABASE_URL)

(async ()=>{
  await db.set('key',{a: 5})
  await db.get('key') //{a: 5}
})()

API

db.set(key: string,value: any)

Set the value of key to value

db.get(key: string)

Get the value of key

if key==='*', it will return an object of all values

db.del(key: string)

Delete the value of key

if key==='*', it will delete every things

FAQs

Package last updated on 24 Mar 2018

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