Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.