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

w3wconverter

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

w3wconverter - npm Package Compare versions

Comparing version 0.0.2 to 0.0.21

LICENSE

21

index.js

@@ -1,1 +0,20 @@

module.exports = require('./src/lib/w3wc');
/**** W3WConverter turns a postcode into a set of lat-long coordinates via the Google Places API
and then, in turn, converts these into a What3Words address via the W3W API.
Copyright (C) 2021 Gareth Whitley
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. ****/
module.exports = require('./src/lib/w3wc');
const licenseMessage = 'Copyright (C) 2021 Gareth Whitley. This program comes with ABSOLUTELY NO WARRANTY. Please see the included license file or go to www.https://github.com/gwhitdev/w3wconverter for more details.';
console.log(licenseMessage);
{
"name": "w3wconverter",
"version": "0.0.2",
"version": "0.0.21",
"description": "Coverts postcodes to lat-long coordinates via Google Places API, then into What3Words addresses.",

@@ -9,3 +9,15 @@ "main": "index.js",

},
"license": "ISC",
"repository": {
"type": "git",
"url": "https://github.com/gwhitdev/w3wconverter.git"
},
"keywords": [
"what3words",
"google"
],
"author": "Gareth Whitley",
"license": "GNU GPL v3.0",
"bugs": {
"url": "https://github.com/gwhitdev/w3wconverter/issues"
},
"dependencies": {

@@ -12,0 +24,0 @@ "axios": "^0.21.1",

5

README.md

@@ -7,2 +7,5 @@ # What3Words Converter

## Config
You will need to create a .env file and set the following variables with your own API keys: GOOGLE_API_KEY and W3W_API_KEY.
You will need to create a .env file and set the following variables with your own API keys: GOOGLE_API_KEY and W3W_API_KEY.
## License
GNU General Public License v3.0

@@ -0,1 +1,18 @@

/**** W3WConverter turns a postcode into a set of lat-long coordinates via the Google Places API
and then, in turn, converts these into a What3Words address via the W3W API.
Copyright (C) 2021 Gareth Whitley
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. ****/
const axios = require('axios');

@@ -2,0 +19,0 @@

@@ -0,1 +1,18 @@

/**** W3WConverter turns a postcode into a set of lat-long coordinates via the Google Places API
and then, in turn, converts these into a What3Words address via the W3W API.
Copyright (C) 2021 Gareth Whitley
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. ****/
const fs = require('fs');

@@ -2,0 +19,0 @@ const neatCsv = require('neat-csv');

@@ -0,1 +1,18 @@

/**** W3WConverter turns a postcode into a set of lat-long coordinates via the Google Places API
and then, in turn, converts these into a What3Words address via the W3W API.
Copyright (C) 2021 Gareth Whitley
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. ****/
const axios = require('axios');

@@ -2,0 +19,0 @@

@@ -0,1 +1,18 @@

/**** W3WConverter turns a postcode into a set of lat-long coordinates via the Google Places API
and then, in turn, converts these into a What3Words address via the W3W API.
Copyright (C) 2021 Gareth Whitley
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. ****/
const WebResponse = require('./web-response');

@@ -2,0 +19,0 @@ const W3WAddress = require('./w3w-address');

@@ -0,1 +1,18 @@

/**** W3WConverter turns a postcode into a set of lat-long coordinates via the Google Places API
and then, in turn, converts these into a What3Words address via the W3W API.
Copyright (C) 2021 Gareth Whitley
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. ****/
class WebResponse {

@@ -2,0 +19,0 @@ #records = [];

@@ -0,1 +1,18 @@

/**** W3WConverter turns a postcode into a set of lat-long coordinates via the Google Places API
and then, in turn, converts these into a What3Words address via the W3W API.
Copyright (C) 2021 Gareth Whitley
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>. ****/
const createCsvWriter = require('csv-writer').createObjectCsvWriter;

@@ -2,0 +19,0 @@

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