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

Function searchByCode

pages/api/ncm/v1/index.js:8–10  ·  view source on GitHub ↗
(input, search)

Source from the content-addressed store, hash-verified

6};
7
8const searchByCode = (input, search) => {
9 return input.replace(/\D/g, '').startsWith(search.replace(/[,.]/, ''));
10};
11
12async function getAllNcmData(request, response) {
13 let ncmData = await getNcmData();

Callers 1

getAllNcmDataFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected