
Security News
MCP Steering Committee Launches Official MCP Registry in Preview
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
fivem-source-map-support
Advanced tools
Writed from scratch, but some of code based on node-source-map-support
This package provides ability to use JavaScript (e.g. TypeScript) source-maps both on server and client-side.
FxDK is supported too.
Note
Package was not tested on any a bit large project (because i don't have one), so i would appreciate any information on how this works for you.
Install package
$ npm install fivem-source-map-support
or
$ yarn add fivem-source-map-support
Then put this code somewhere in your project:
import SourceMapSupport from 'fivem-source-map-support'
SourceMapSupport.inject()
// or
require("fivem-source-map-support").inject()
Please, note few things:
You can manually use package on client-side ignoring just mentioned way:
node_modules/fivem-source-map-support/dist
or from archive (if you downloaded release)fivem-sourcemap.js
)client_script "fivem-sourcemap.js"
Package will be injected automatically, no additional code required.
For some tricky annoying reason, if your resource located in sub-directory of resources folder, for example, not resources/your-resource
but resources/[core]/your-resource
, you need to help package to locate directory:
import SourceMapSupport from 'fivem-source-map-support'
SourceMapSupport.inject({ subdir: '[core]' })
// or
require('fivem-source-map-support').inject({ subdir: '[core]' })
Doesn't make sense on client-side.
Client-side supports only inline source-maps. Maps that placed in separate files will not be readed.
FAQs
FiveM JavaScript source maps support
The npm package fivem-source-map-support receives a total of 4 weekly downloads. As such, fivem-source-map-support popularity was classified as not popular.
We found that fivem-source-map-support demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.