MCPcopy Create free account
hub / github.com/BrasilAPI/BrasilAPI / getNcmData

Function getNcmData

services/sefaz/index.js:44–55  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42};
43
44export const getNcmData = async () => {
45 try {
46 const response = await fetchNcmListFromSefaz();
47 return response.Nomenclaturas.map((el) => {
48 return parseObject(el);
49 });
50 } catch (err) {
51 return ncmList.Nomenclaturas.map((el) => {
52 return parseObject(el);
53 });
54 }
55};

Callers 2

getNcmByCodeFunction · 0.90
getAllNcmDataFunction · 0.90

Calls 2

fetchNcmListFromSefazFunction · 0.85
parseObjectFunction · 0.85

Tested by

no test coverage detected