node package manager
Love JavaScript? Your insights can make it even better. Take the 2017 JavaScript Ecosystem Survey »

ns-schema-scraper

ns-record-scraper

scrapes the records at netsuite schema browser and returns JSON

npm install zabaat-ns-scrape

"use strict";
var scrape = require('zabaat-ns-scrape')
 
scrape.nsScrape((err,data)=>{
    console.log("back",data)
})
 

example output

[
  {
    "name": "serviceitem",
    "fields": [
      {
        "id": "accountingbook",
        "type": "select",
        "desc": "Accounting Book"
      },
      {
        "id": "accountingbookamortization",
        "type": "select",
        "desc": "Accounting Book Amortization Schedule"
      },
 
      ...
 
   ]
  }
]