Detwitter
Simple Swift implementation of the SourceMap specification: create, load, query, modify, and save source maps.
let map = try SourceMap(Data(contentsOf: mapURL)) print(map.file) let unpackedMap = try UnpackedSourceMap(map) let segment = unpackedMap.map(line: 12, column: 0)
var map = SourceMap() map.sources = [.remote("a.scss")] map.sourceRoot = "./../src/" try map.set(segments: ..., validate: true) let mapData = map.encode()
No support for:
Only with Swift Package Manager, via Xcode or directly:
Package dependency:
.package(name: "SourceMapper", url: "https://github.com/johnfairh/SourceMapper.git", from: "2.0.0")
Welcome: open an issue / johnfairh@gmail.com / @johnfairh@mastodon.social
Distributed under the MIT license.
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
SourceMapper
Simple Swift implementation of the SourceMap specification: create, load, query, modify, and save source maps.
Examples
Documentation
No support for:
Requirements
Installation
Only with Swift Package Manager, via Xcode or directly:
Package dependency:
Contributions
Welcome: open an issue / johnfairh@gmail.com / @johnfairh@mastodon.social
License
Distributed under the MIT license.