Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
8
const
searchByCode = (input, search) => {
9
return
input.replace(/\D/g,
''
).startsWith(search.replace(/[,.]/,
''
));
10
};
11
12
async
function
getAllNcmData(request, response) {
13
let
ncmData =
await
getNcmData();
Callers
1
getAllNcmData
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected