
Security News
AI Agent Lands PRs in Major OSS Projects, Targets Maintainers via Cold Outreach
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.
what3words-api-nodejs-client
Advanced tools
what3words-api-nodejs-client is Node.js client library for what3words API.
Work In Progress : It exposes a subset of what3words API methods.
This library allows to use an environment variable (W3W_API_KEY) to send requests on what3words API. Otherwise the what3words API keyr is a parameter of each requests.
$ export W3W_API_KEY=YOUR-API-KEY
or
what3words.forward({
addr: 'index.home.raft',
key: 'YOUR-API-KEY'
});
what3words already maintains a dedicated client side JavaScript library
installation
$ npm install what3words-api-nodejs-client
configure
$ export W3W_API_KEY=YOUR-API-KEY
Enjoy #3wordadresses
This function wraps what3words API method forward It returns a Promise resolved by API payload.
const what3words = require('what3words-api-nodejs-client');
what3words.forward({
addr: 'index.home.raft'
})
.then(
(data) => {
console.log(data);
}
)
.catch((err) => {
console.error(err);
});
This function wraps what3words API method reverse It returns a Promise resolved by API payload.
const what3words = require('what3words-api-nodejs-client');
what3words.reverse({
coords: '51.521251,-0.203586'
})
.then(
(data) => {
console.log(data);
}
)
.catch((err) => {
console.error(err);
});
This function wraps what3words API method languages It returns a Promise resolved by what3words API payload.
const what3words = require('what3words-api-nodejs-client');
what3words.languages()
.then(
(data) => {
console.log(data);
}
)
.catch((err) => {
console.error(err);
});
This function wraps what3words API method standardblend It returns a Promise resolved by API payload.
const what3words = require('what3words-api-nodejs-client');
what3words.standardblend({
addr: 'planter.récolte.a',
lang: 'fr'
})
.then(
(data) => {
console.log(data);
}
)
.catch((err) => {
console.error(err);
});
This function wraps what3words API method autosuggest It returns a Promise resolved by API payload.
const what3words = require('what3words-api-nodejs-client');
what3words.autosuggest({
addr: 'index.home.ra',
lang: 'en'
})
.then(
(data) => {
console.log(data);
}
)
.catch((err) => {
console.error(err);
});
This function wraps what3words API method autosuggest It returns a Promise resolved by API payload.
const what3words = require('what3words-api-nodejs-client');
what3words.autosuggestML({
addr: 'index.home.ra',
lang: 'en'
})
.then(
(data) => {
console.log(data);
}
)
.catch((err) => {
console.error(err);
});
This function wraps what3words API method grid It returns a Promise resolved by API payload.
const what3words = require('what3words-api-nodejs-client');
what3words.grid({
bbox: '45.192,5.7237,45.188,5.7180',
format: 'geojson'
})
.then(
(data) => {
console.log(data);
}
)
.catch((err) => {
console.error(err);
});
$ npm i
$ npm test
$ npm run-script coverage
report is available with :
$ open coverage/lcov-report/index.html
Anyone and everyone is welcome to contribute.
Find a bug or want to request a new feature? Please let me know by submitting an issue.
Licensed under the MIT License
A copy of the license is available in the repository's LICENSE file.
FAQs
what3words api nodejs client
We found that what3words-api-nodejs-client 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.

Security News
An AI agent is merging PRs into major OSS projects and cold-emailing maintainers to drum up more work.

Research
/Security News
Chrome extension CL Suite by @CLMasters neutralizes 2FA for Facebook and Meta Business accounts while exfiltrating Business Manager contact and analytics data.

Security News
After Matplotlib rejected an AI-written PR, the agent fired back with a blog post, igniting debate over AI contributions and maintainer burden.