Socket
Book a DemoInstallSign in
Socket

grunt-json2js

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

grunt-json2js

Compiles JSON files into JavaScript

0.1.4
unpublished
latest
Source
npmnpm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

grunt-json2js

Compiles JSON files into JavaScript

Getting Started

Install grunt-json2js via NPM

npm install grunt-json2js

Then add this line to Gruntfile:

grunt.loadNpmTasks('grunt-json');

Options

namespace

Type: String Default: 'json'

The namespace in which the json data will be assigned.

noVar

Type: Boolean Default: true

If you are defining a namespace which contains . then set this to false.

Example Grunt configuration

json2js: {
  main: {
    options: {
      namespace: 'i18n'
    },
    src: ['path/to/source/**/*.json'],
    dest: 'path/to/compiled/json.js'
  }
}

Acknowledgements

This is a modified version of grunt-json which was authored by Wilson Page. [grunt-json]: https://github.com/wilsonpage/grunt-json

Keywords

gruntplugin

FAQs

Package last updated on 14 Oct 2014

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.