Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@gulp-sourcemaps/identity-map

Package Overview
Dependencies
Maintainers
3
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gulp-sourcemaps/identity-map

Gulp plugin for generating an identity sourcemap for a file.

  • 2.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
64K
decreased by-80.21%
Maintainers
3
Weekly downloads
 
Created

What is @gulp-sourcemaps/identity-map?

@gulp-sourcemaps/identity-map is a Gulp plugin that generates a source map for a file by assuming the file content is the result of a transformation. It is useful for cases where you want to generate source maps for files that have already been transformed by other tools.

What are @gulp-sourcemaps/identity-map's main functionalities?

Generate Source Maps

This feature allows you to generate source maps for JavaScript files. The code sample demonstrates how to use the @gulp-sourcemaps/identity-map plugin in a Gulp task to generate source maps for all JavaScript files in the 'src' directory and output them to the 'dist' directory.

const gulp = require('gulp');
const sourcemaps = require('gulp-sourcemaps');
const identityMap = require('@gulp-sourcemaps/identity-map');

gulp.task('sourcemap', function () {
  return gulp.src('src/**/*.js')
    .pipe(sourcemaps.init())
    .pipe(identityMap())
    .pipe(sourcemaps.write('.'))
    .pipe(gulp.dest('dist'));
});

Other packages similar to @gulp-sourcemaps/identity-map

Keywords

FAQs

Package last updated on 09 Mar 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc