New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

safecast-api

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

safecast-api

node.js client for safecast APIs (https://api.safecast.org/)

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

safecast-api

Safecast API is a node.js client library for safecast REST APIs.

Install

npm install safecast-api

Usage

var safecast = require('safecast-api');

safecast.getMeasurements(0,0,1,function(measurements) {
  measurements.forEach(function (measurement) {
    var reading = util.format("Reading %d: %d %s near %d %d on %s",
                               measurement.id,
                               measurement.value,
                               measurement.unit,
                               measurement.latitude,
                               measurement.longitude,
                               measurement.captured_at);
    console.log(reading);
  });
});

Tests

npm test

Contributing

Safecast users that have an account should test the POST functions.

TODO

  • Support POST features
  • Add support for i18n/l10n endpoints

© Steven E. Newton  ·  License: ISC  ·  Github: @cratermoon

FAQs

Package last updated on 09 Sep 2016

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