- 授权协议: BSD
- 开发语言: JavaScript
- 操作系统: 跨平台
- 软件首页: https://github.com/mozilla/source-map
软件介绍
Source-map 是一个能够生成和使用源地图格式的开发包。
这个开发包是使用异步模块定义格式编写的,工作在下面的环境中:
-
现代浏览器支持 ECMAScript 5
-
内置火狐作为 JSM 文件(after the build)
-
需要 NodeJS 0.8.X 或更高版本
使用源地图(Consuming a source map)
var rawSourceMap = {
version: 3,
file: 'min.js',
names: ['bar', 'baz', 'n'],
sources: ['one.js', 'two.js'],
sourceRoot: 'http://example.com/www/js/',
mappings: 'CAAC,IAAI,IAAM,SAAUA,GAClB,OAAOC,IAAID;CCDb,IAAI,IAAM,SAAUE,GAClB,OAAOA'};var smc = new SourceMapConsumer(rawSourceMap);console.log(smc.sources);// [ 'http://example.com/www/js/one.js',// 'http://example.com/www/js/two.js' ]console.log(smc.originalPositionFor({
line: 2,
column: 28}));// { source: 'http://example.com/www/js/two.js',// line: 2,// column: 10,// name: 'n' }console.log(smc.generatedPositionFor({
source: 'http://example.com/www/js/two.js',
line: 2,
column: 10}));// { line: 2, column: 28 }smc.eachMapping(function (m) { // ...});
Learn Python 3 the Hard Way
Zed A. Shaw / Addison / 2017-7-7 / USD 30.74
You Will Learn Python 3! Zed Shaw has perfected the world’s best system for learning Python 3. Follow it and you will succeed—just like the millions of beginners Zed has taught to date! You bring t......一起来看看 《Learn Python 3 the Hard Way》 这本书的介绍吧!
