Socket
Book a DemoInstallSign in
Socket

browserify-fastjson

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

browserify-fastjson

Browserify transform to inline JSON files in to the code. This is can dramatically speed up build times with large JSON files

1.2.2
latest
Source
npmnpm
Version published
Weekly downloads
0
-100%
Maintainers
1
Weekly downloads
 
Created
Source

browserify-fastjson

This project is no longer maintained

Browserify transform to inline JSON files in to the code.

Under normal operation, Browserify will embed the JSON as it would a regular js file. All the transforms are executed on it, and in the case of the more complicated transforms (e.g. Babel) this can slow your build down considerably in the case of large JSON files - even though it's not necessary (it's only JSON!).

Browserify-fastjson will read in your require'd JSON files as text and inline it directly into your code, after all your other transforms have already executed as long as it's the last one in the transform chain!

Example

var fastjson = require( 'browserify-fastjson' );

...

// Always make sure it's the last transform executed - else you won't get the full performance benefit
bundle.transform( anotherTransform );
bundle.transform( someOtherTransform );
bundle.transform( fastjson );

Example

browserify -t someTransform -t browserify-fastjson main.js

Keywords

browserify-transform

FAQs

Package last updated on 06 Sep 2019

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

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.