MCPcopy
hub / github.com/css/csso / extractSourceMap

Function extractSourceMap

test/sourceMaps.js:62–68  ·  view source on GitHub ↗
(source)

Source from the content-addressed store, hash-verified

60}
61
62function extractSourceMap(source) {
63 const m = source.match(/\/\*# sourceMappingURL=data:application\/json;base64,(.+) \*\//);
64
65 if (m) {
66 return Buffer.from(m[1], 'base64').toString();
67 }
68}
69
70describe('sourceMaps', () => {
71 it('should return object when sourceMap is true', () => {

Callers 1

sourceMaps.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…