{"_id":"esformatter-shebang-ignore","_rev":"6-aabb23937a67ea5845fb4437a235ab80","name":"esformatter-shebang-ignore","description":"esformatter plugin: ignore jsx blocks so the rest of the javascript code could be formatted","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"esformatter-shebang-ignore","version":"1.0.0","description":"esformatter plugin: ignore jsx blocks so the rest of the javascript code could be formatted","repository":{"type":"git","url":"https://github.com/royriojas/esformatter-shebang-ignore"},"license":"MIT","author":{"name":"Roy Riojas","url":"http://royriojas.com"},"main":"index.js","files":["index.js"],"engines":{"node":">=0.10.0"},"scripts":{"test":"mocha -R spec test","watch":"mocha -R spec --watch test"},"keywords":["esformatter-plugin","esformatter","shebang","ignoreshebang","ignore shebang","AST","codestyle"],"peerDependencies":{},"dependencies":{},"devDependencies":{"chai":"*","esformatter":"^0.4.3","mocha":"^2.1.0"},"gitHead":"ef305bf7586066505d15a83cfcd856109e54fcf9","bugs":{"url":"https://github.com/royriojas/esformatter-shebang-ignore/issues"},"homepage":"https://github.com/royriojas/esformatter-shebang-ignore","_id":"esformatter-shebang-ignore@1.0.0","_shasum":"bc5f8e8ae2e8911307ce9393cf1a7c4b8dcc7a7a","_from":".","_npmVersion":"2.6.0","_nodeVersion":"0.12.0","_npmUser":{"name":"royriojas","email":"royriojas@gmail.com"},"maintainers":[{"name":"royriojas","email":"royriojas@gmail.com"}],"dist":{"shasum":"bc5f8e8ae2e8911307ce9393cf1a7c4b8dcc7a7a","tarball":"https://registry.npmjs.org/esformatter-shebang-ignore/-/esformatter-shebang-ignore-1.0.0.tgz","integrity":"sha512-DrrsDEG9aGWhg2uP77+JCpZgV1i/mIJnFQX/Pg4f5uhi7HPHmJqrEs39+oguiLCgVlpoTiVEqE5c3/zRZy1nUw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC0gbkdJtTDIlVZTYdUoUwrZV2YWHnsMv4BYtyQLxMrXAIgW5f8bwnmiNxfsHWHKdJhucZqpQ636IiZdZovcD86eNQ="}]}}},"readme":"# [esformatter](https://github.com/millermedeiros/esformatter)-shebang-ignore\n> esformatter plugin: ignore shebang line so the rest of the javascript code could be formatted without parsing errors\n\n[![NPM Version](http://img.shields.io/npm/v/esformatter-shebang-ignore.svg?style=flat)](https://npmjs.org/package/esformatter-shebang-ignore)\n[![Build Status](http://img.shields.io/travis/royriojas/esformatter-shebang-ignore.svg?style=flat)](https://travis-ci.org/royriojas/esformatter-shebang-ignore)\n\n**Esformatter-shebang-ignore** is a plugin for [esformatter](https://github.com/millermedeiros/esformatter) meant to allow the\ncode formatting of files that contain a shebang line. This plugin basically will make esformatter to ignore the offending shebang line and let `esformatter` apply the magic on the rest of the file.\n\nSo this plugin will turn this:\n```js\n\n#!/usr/bin/env node\n\nvar fs = require(         'fs' );\nvar utils = require    (    './lib/util' );\nvar path = require   ( 'path');\n```\n\ninto:\n```js\n#!/usr/bin/env node\n\nvar fs = require( 'fs' );\nvar utils = require( './lib/util' );\nvar path = require( 'path' );\n```\n\n## Installation\n\n```sh\n$ npm install esformatter-shebang-ignore --save-dev\n```\n\n## Config\n\nNewest esformatter versions autoload plugins from your `node_modules` [See this](https://github.com/millermedeiros/esformatter#plugins)\n\nAdd to your esformatter config file:\n\nIn order for this to work, this plugin should be the first one! (I Know too picky, but who isn't).\n\n```json\n{\n  \"plugins\": [\n    \"esformatter-shebang-ignore\"\n  ]\n}\n```\n**Note**: The previous syntax won't work because of [this issue](https://github.com/millermedeiros/esformatter/issues/245). \nBut registering it manually will work like a charm!\n\nOr you can manually register your plugin:\n```js\n// register plugin\nesformatter.register(require('esformatter-shebang-ignore'));\n```\n\n## Usage\n\n```js\nvar fs = require('fs');\nvar esformatter = require('esformatter');\n//register plugin manually\nesformatter.register(require('esformatter-shebang-ignore'));\n\nvar str = fs.readFileSync('someKewlFile.js').toString();\nvar output = esformatter.format(str);\n//-> output will now contain the formatted code, allowing to format files with shebang lines\n```\n\nSee [esformatter](https://github.com/millermedeiros/esformatter) for more options and further usage.\n\n## License\n\nMIT @[Roy Riojas](http://royriojas.com)","maintainers":[{"name":"royriojas","email":"royriojas@gmail.com"}],"time":{"modified":"2022-06-17T17:43:42.629Z","created":"2015-02-24T22:33:28.434Z","1.0.0":"2015-02-24T22:33:28.434Z"},"homepage":"https://github.com/royriojas/esformatter-shebang-ignore","keywords":["esformatter-plugin","esformatter","shebang","ignoreshebang","ignore shebang","AST","codestyle"],"repository":{"type":"git","url":"https://github.com/royriojas/esformatter-shebang-ignore"},"author":{"name":"Roy Riojas","url":"http://royriojas.com"},"bugs":{"url":"https://github.com/royriojas/esformatter-shebang-ignore/issues"},"license":"MIT","readmeFilename":"README.md","users":{}}