
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
data-dot-gov
Advanced tools
JavaScript SDK for accessing Singapore government data from data.gov.sg
data-dot-gov
This package exposes APIs from https://data.gov.sg for usage from JavaScript.
Install it via npm
:
# npm install data-dot-gov --save-dev
In your main index.js
/server.js
file, import the package and set the consumer key. You can obtain
a consumer key by creating an account at https://developers.data.gov.sg.
After setting up, go to your APIs and create a new app. A Consumer Key should have been made available to you.
✅ indicates it's ready. ❌ indicates it's not ready.
Source: https://developers.data.gov.sg/
Available at: dataDotGov.RealTime.Transport.getTaxiAvailability()
Not available yet.
Not available yet.
Not available yet.
Not available yet.
Not available yet.
Not available yet.
Not available yet.
Not available yet.
Not available yet.
Not available yet.
Not available yet.
Not available yet.
Source: https://data.gov.sg/developer
Available at: dataDotGov.DataStore.getPackageInfo(:package_name)
:package_name
- name of package according to package on https://data.gpv.sg.
Available at: dataDotGov.DataStore.getResourceInfo(:resource_id)
:resource_id
- UUID of resource from .getPackageInfo()
.
Available at: dataDotGov.DataStore.query(:resource_id, :query)
:resource_id
- UUID of CKAN API resource, note that this is not the same as the :resource_id
from resource_metadata
.
:query
- additional search parameters for querying the resource identified by :resource_id
.
Add on to this if you've created a function endpoint for this!
Fork this project and clone it locally.
Install dependencies with:
# npm install
#
# OR
#
# yarn install
See the above section in Usage on obtaining an API Consumer Key
.env
FileCreate an .env
file in the project root with the following content:
PORT=<port for hosting>
DATAGOVSG_CONSUMER_KEY=<consumer key from above>
The ./index.js
file contains the main file which is included upon require('data-dot-gov')
.
The ./lib
folder contains the code in a single-layer organisation manner. Files within ./lib
should be named in lowercase according to the variables they expose.
Tests are stored in ./test
and are run using the Mocha runner. Test coverage is
provided by Istanbul and is made available in ./coverage
.
To run the tests, use npm test
.
To run the tests with watching, use npm run test-watch
Run the development server using npm run dev
and you should be able to access the coverage
reports at http://localhost:`PORT` where PORT
is a defined key in your ./.env
file.
FAQs
JavaScript SDK for accessing Singapore government data from data.gov.sg
The npm package data-dot-gov receives a total of 0 weekly downloads. As such, data-dot-gov popularity was classified as not popular.
We found that data-dot-gov demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.