concat-with-sourcemaps

WebJar for concat-with-sourcemaps

Лицензия

Лицензия

ISC
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

concat-with-sourcemaps
Последняя версия

Последняя версия

1.1.0
Дата

Дата

Тип

Тип

jar
Описание

Описание

concat-with-sourcemaps
WebJar for concat-with-sourcemaps
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

https://github.com/floridoo/concat-with-sourcemaps

Скачать concat-with-sourcemaps

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/concat-with-sourcemaps/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>concat-with-sourcemaps</artifactId>
    <version>1.1.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/concat-with-sourcemaps/
implementation 'org.webjars.npm:concat-with-sourcemaps:1.1.0'
// https://jarcasting.com/artifacts/org.webjars.npm/concat-with-sourcemaps/
implementation ("org.webjars.npm:concat-with-sourcemaps:1.1.0")
'org.webjars.npm:concat-with-sourcemaps:jar:1.1.0'
<dependency org="org.webjars.npm" name="concat-with-sourcemaps" rev="1.1.0">
  <artifact name="concat-with-sourcemaps" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='concat-with-sourcemaps', version='1.1.0')
)
libraryDependencies += "org.webjars.npm" % "concat-with-sourcemaps" % "1.1.0"
[org.webjars.npm/concat-with-sourcemaps "1.1.0"]

Зависимости

compile (1)

Идентификатор библиотеки Тип Версия
org.webjars.npm : source-map jar [0.6.1,0.7)

Модули Проекта

Данный проект не имеет модулей.

Concat with source maps NPM version build status Test coverage

NPM module for concatenating files and generating source maps.

Usage example

var concat = new Concat(true, 'all.js', '\n');
concat.add(null, "// (c) John Doe");
concat.add('file1.js', file1Content);
concat.add('file2.js', file2Content, file2SourceMap);

var concatenatedContent = concat.content;
var sourceMapForContent = concat.sourceMap;

API

new Concat(generateSourceMap, outFileName, separator)

Initialize a new concat object.

Parameters:

  • generateSourceMap: whether or not to generate a source map (default: false)
  • outFileName: the file name/path of the output file (for the source map)
  • separator: the string that should separate files (default: no separator)

concat.add(fileName, content, sourceMap)

Add a file to the output file.

Parameters:

  • fileName: file name of the input file (can be null for content without a file reference, e.g. a license comment)
  • content: content (Buffer or string) of the input file
  • sourceMap: optional source map of the input file (string). Will be merged into the output source map.

concat.content

The resulting concatenated file content (Buffer).

concat.sourceMap

The resulting source map of the concatenated files (string).

Версии библиотеки

Версия
1.1.0
1.0.5