Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// *****************************************************************************
// *****************************************************************************
// Write a record
// *****************************************************************************
const Aerospike = require('aerospike')
const fs = require('fs')
const yargs = require('yargs')
const status = Aerospike.status
const filter = Aerospike.filter
const GeoJSON = Aerospike.GeoJSON
const Key = Aerospike.Key
// *****************************************************************************
// Options parsing
// *****************************************************************************
var argp = yargs
.usage('$0 [options] key')
.options({
help: {
boolean: true,
describe: 'Display this message.'
},
host: {
alias: 'h',
default: process.env.AEROSPIKE_HOSTS || 'localhost:3000',