backuparcgis-service

update naming all files

1/29/2019 11:49:13 AM

Changes

index.js 8(+4 -4)

package.json 6(+3 -3)

readme.md 27(+13 -14)

Details

index.js 8(+4 -4)

diff --git a/index.js b/index.js
index 13270fe..29d40fa 100644
--- a/index.js
+++ b/index.js
@@ -7,7 +7,7 @@ const fs = require('fs')
 const fsPromises = require('./lib/fs-promise')
 const crypto = require('crypto')
 
-class BackupArcGIS {
+class BackupArcGISService {
 
     constructor(url, dir) {
 
@@ -155,12 +155,12 @@ if(require.main == module) {
     // if run as node process
     if ( process.argv.length < 4 ) {
         console.log('ArcGIS (Hosted) Feature Service URL and working directory path required')
-        console.log('example: backuparcgis https://services.arcgis.com/uUvqNMGPm7axC2dD/arcgis/rest/services/state_parks/FeatureServer/0 ./')
+        console.log('example: backuparcgis-service https://services.arcgis.com/uUvqNMGPm7axC2dD/arcgis/rest/services/state_parks/FeatureServer/0 ./')
         process.exitCode = 1
         return
     }
 
-    const backup = new BackupArcGIS(process.argv[2], process.argv[3])
+    const backup = new BackupArcGISService(process.argv[2], process.argv[3])
     backup.run().then((resp) => {
         if(!resp.duplicate) {
             console.log(`${resp.serviceDetails.name} completed: ${resp.filename}`)
@@ -170,5 +170,5 @@ if(require.main == module) {
     })
 } else {
     // if run by require()
-    module.exports = BackupArcGIS
+    module.exports = BackupArcGISService
 }
\ No newline at end of file

package.json 6(+3 -3)

diff --git a/package.json b/package.json
index 4d937ec..cdd495b 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
 {
-  "name": "backuparcgis",
-  "homepage": "https://github.com/tannerjt/backuparcgis#readme",
+  "name": "backuparcgis-service",
+  "homepage": "https://github.com/tannerjt/backuparcgis-service#readme",
   "version": "1.0.0",
   "engines": {
     "node": ">8.9.0"
@@ -15,7 +15,7 @@
   },
   "repository": {
     "type": "git",
-    "url": "github:tannerjt/backuparcgis"
+    "url": "github:tannerjt/backuparcgis-service"
   },
   "author": "Joshua Tanner (@Tanner_GEO)",
   "license": "ISC",
diff --git a/package-lock.json b/package-lock.json
index 7287fc2..7458959 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1,5 +1,5 @@
 {
-  "name": "steam_arcgis_2_file.js",
+  "name": "backuparcgis-service",
   "version": "1.0.0",
   "lockfileVersion": 1,
   "requires": true,

readme.md 27(+13 -14)

diff --git a/readme.md b/readme.md
index 0284446..c965380 100644
--- a/readme.md
+++ b/readme.md
@@ -1,38 +1,37 @@
-## BackupArcGIS
-
-Async module to backup content from ArcGIS Online hosted feature services.
+## backuparcgis-service
+backuparcgis-service to backup content from ArcGIS Online hosted feature services.
 
 ## About
 
 Hosted Feature Services in ArcGIS Online are a great way to host and serve geospatial data into your online maps.  The infrastructure of ArcGIS Online has proven to be performant and highly available.  There is, however, always a chance your mission critical services will run into issues.  ArcGIS Online outages, accidental deletion, or service corruption can all happen.  It's best to be prepared and at least have a backup of your data on hand.
 
-This library, *BackupArcGIS*, is a performant asynchronous streaming nodejs library that can be imported as a nodejs module or run directly from command line.
+This library, *backuparcgis-service*, is a performant asynchronous streaming nodejs library that can be imported as a nodejs module or run directly from command line.
 
 ## Features
 
 ### Asynchronous 
 
-BackupArcGIS is asynchronous and returns a promise when complete.
+backuparcgis-service is asynchronous and returns a promise when complete.
 
 ### Versioned
 
-BackupArcGIS only stores a backup of the data if changes has been made.  It uses sha256 hashing algorithm to compare new and existing backups.  Only services with new data are backed up, saving space.
+backuparcgis-service only stores a backup of the data if changes has been made.  It uses sha256 hashing algorithm to compare new and existing backups.  Only services with new data are backed up, saving space.
 
 ### Streaming
 
-BackupArcGIS streams feature service content directly to a file and does not store it in memory.  This allows the script to run faster and avoid memory issues with larger datasets.
+backuparcgis-service streams feature service content directly to a file and does not store it in memory.  This allows the script to run faster and avoid memory issues with larger datasets.
 
 ## Use require()
 
 ```bash
-$ npm install backuparcgis
+$ npm install backuparcgis-service
 ```
 
 ```javascript
-const BackupArcGIS = require('backuparcgis')
+const BackupArcGISService = require('backuparcgis-service')
 
 // new BackupArcGIS(serviceURL, archiveDirectory)
-const Backup = new BackupArcGIS('https://services.arcgis.com/uUvqNMGPm7axC2dD/arcgis/rest/services/state_parks/FeatureServer/0', outDir)
+const Backup = new BackupArcGISService('https://services.arcgis.com/uUvqNMGPm7axC2dD/arcgis/rest/services/state_parks/FeatureServer/0', outDir)
 
 Backup.run().then((resp) => {
     if(!resp.duplicate) {
@@ -46,18 +45,18 @@ Backup.run().then((resp) => {
 ## Run from command line
 
 ```bash
-$ npm install backuparcgis
+$ npm install backuparcgis-service
 ```
 
 **Format:**
 
-*backuparcgis serviceUrl archiveDirectory*
+*backuparcgis-service serviceUrl archiveDirectory*
 
 ```bash
 #!/bin/bash
 
-backuparcgis https://services.arcgis.com/uUvqNMGPm7axC2dD/arcgis/rest/services/state_parks/FeatureServer/0 ./terminal
-backuparcgis https://services.arcgis.com/uUvqNMGPm7axC2dD/ArcGIS/rest/services/Brookings_Sites/FeatureServer/0 ./terminal
+backuparcgis-service https://services.arcgis.com/uUvqNMGPm7axC2dD/arcgis/rest/services/state_parks/FeatureServer/0 ./terminal
+backuparcgis-service https://services.arcgis.com/uUvqNMGPm7axC2dD/ArcGIS/rest/services/Brookings_Sites/FeatureServer/0 ./terminal
 ```
 
 ## Response