
Security News
New CNA Scorecard Tool Ranks CVE Data Quality Across the Ecosystem
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
cc-import-xml-writer
Advanced tools
ClassicCars.com module to write an xml file our importer can process.
ClassicCars.com module to write an xml file our importer can process.
Exposes a method that will take a string that is the path of the file to ouput and return a writable stream that expects a Listing
object per write (data event) for processing to the output file.
npm install cc-import-xml-writer
Direct writes...
var ccWriter = require('cc-import-xml-writer');
var output = ccWriter('output.xml');
...
output.write({
//required
id: 1 //dealer stock number [string or number], must be unique to the account
,year: 1968
,make: 'Chevrolet'
,model: 'Camaro'
,price: 45000.00
//suggested
,vin: '...' //[string]
,description: "..." // text/markdown, no html
,images: ["http://..../image1.jpg",...]
// either an array of urls, or a string with a comma/white-space separated list
//optional
,video: 'http://youtube.com/...' //url (only supporting youtube)
});
...
output.end(); //finish outputting the file.
Piped from an input stream...
var fs = rquire('fs'),
es = require('event-stream'),
ccWriter = require('cc-import-xml-writer`)
getListingFromData = require('./getListingFromData');
//create input stream
fs.createReadStream('input.txt')
//convert input stream to expected structure
.pipe(es.map(function processData(data,callback){
//transform input to expected structure here
callback(getListingFromData(data));
})
//ouput result to xml
.pipe(ccWriter('ouput.xml'));
A listing item requires the following properties: (required)
id
- number or string - must be unique for the accountyear
- number - between 1880 - current+1)make
- string - Manufacturermodel
- string - Modelprice
- number - Required unless the account is for auctionsA listing item should have the following fields: (suggested)
images
- string or array - url for full-size imagesdescription
- string - the description for the listingvin
- string - vin may be required for advanced featuresA listing item may have the following fields: (optional)
video
- YouTube URL to the video for the specific vehicleA listing item may have the following fields: (deprecated)
exterior
- string - color (deprecated)interior
- string - color (deprecated)transmission
- string - 'a' or 'm' (deprecated)milage
- number - miles on the vehicleFAQs
ClassicCars.com module to write an xml file our importer can process.
The npm package cc-import-xml-writer receives a total of 0 weekly downloads. As such, cc-import-xml-writer popularity was classified as not popular.
We found that cc-import-xml-writer 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
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.
Research
/Security News
Two npm packages masquerading as WhatsApp developer libraries include a kill switch that deletes all files if the phone number isn’t whitelisted.
Research
/Security News
Socket uncovered 11 malicious Go packages using obfuscated loaders to fetch and execute second-stage payloads via C2 domains.