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

aux-xml

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aux-xml - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

2

package.json
{
"name": "aux-xml",
"version": "0.1.0",
"version": "0.1.1",
"description": "Identify and Read Auxiliary XML Files (e.g., .jpg.aux.xml, .png.aux.xml, and .tif.aux.xml)",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -7,3 +7,3 @@ const camelcase = require("camelcase");

module.exports = function readAuxXML (xml, { debug = false } = { debug: false }) {
module.exports = function readAuxXML(xml, { debug = false } = { debug: false }) {
if (debug) console.log("[aux-xml] starting readAuxXML");

@@ -10,0 +10,0 @@

const camelcase = require("camelcase");
const findTagByPath = require("xml-utils/find-tag-by-path");
const findTagsByName = require("xml-utils/find-tags-by-name");
const getAttribute = require("xml-utils/get-attribute");

@@ -34,2 +31,6 @@ module.exports = function writeAuxXML(data, { debug = false } = { debug: false }) {

for (let i in data.bands) {
if (i === "0") {
throw new Error("[aux-xml] cannot write band with index 0. Aux XML files start at band 1.");
}
const band = data.bands[i];

@@ -36,0 +37,0 @@ if (typeof band === "object") {

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