npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@dgcode/spreadsheet-app

v0.1.55

Published

mocked classes for google apps script's SpreadsheetApp api

Downloads

30

Readme

@dgcode/spreadsheet-app

mocked classes for google apps script's SpreadsheetApp api

Install

$ npm install @dgcode/spreadsheet-app

Usage

import { SpreadsheetApp } from '@dgcode/spreadsheet-app';

const spreadsheet = SpreadsheetApp.getActiveSpreadsheet();
const sheet = spreadsheet.getSheets()[0];
sheet.getRange(1, 1).setValue('Hello World!');

Features

  • Node.js-compatible: simulate Google Apps Script code by testing locally first
  • Embeddable into Google Apps Script via gscript module

Caveats

Google frequently updates its Apps Script API so this package may fall out of sync at some point. If you really need all the brand-new features they implement, you should mock them yourself at the beginning of your script:

import { SpreadsheetApp } from '@dgcode/spreadsheet-app';

if ('function' !== typeof SpreadsheetApp.someNewMethod) {
  Object.assign(SpreadsheetApp, {
    someNewMethod: function() {
      // ...
    }
  });
}

// mock ready, now run rest of app logic
// ...
import { SpreadsheetApp, Sheet } from '@dgcode/spreadsheet-app';

if ('function' === typeof Sheet && 'function' !== typeof Sheet.prototype.someNewSheetMethod) {
  Object.assign(Sheet.prototype, {
    someNewSheetMethod: function() {
      // ...
    }
  });
}

// mock ready, now run rest of app logic
// ...

License

MIT