Commit Graph

759 Commits

Author SHA1 Message Date
Liam Newman
6ee7b4d559 Replace inaccurate output wrapping tracking with statement tracking
Fixes #314
Fixes #413
2014-04-29 10:48:02 -07:00
Liam Newman
c7e369f42d Preserve newlines in html related to issue #307
For preserve_newlines and max_preserve_newlines false or 0 isn't accepted as configuration. This PR allows both those scenarios.
Fixes #307
2014-04-25 00:13:14 -07:00
Liam Newman
9c65674c88 Fix requirejs relative paths 2014-04-24 23:24:31 -07:00
Liam Newman
9570753bcc Tune require.js and tests 2014-04-24 22:50:51 -07:00
Matt Bierner
33410ae12f Remove use of require.js specific module loader code
Fixes #393
2014-04-24 21:37:23 -07:00
Liam Newman
ba39b1236f Handle one more bare if-else scenario
Fixes #450
2014-04-24 14:08:29 -07:00
Einar Lielmanis
1293f70711 Uniformize default bool option code, fix #449 2014-04-15 17:55:10 +03:00
Liam Newman
c30247fa00 Semicolon-less declaration verification
Closes #323
2014-04-05 13:50:00 -07:00
Liam Newman
41d012e60b Improve statement wrapping across new lines
Fixes #289
2014-04-04 20:29:42 -07:00
Liam Newman
e1b1acc9b3 Improve keep-array-indentation behavior
Still more work to be done here. Opened #445

Fixes #340
Closes #333
2014-04-04 19:17:39 -07:00
Liam Newman
27fd9be304 Do not add space after !!
For some reason we decided to treat `!!` as one operator.  It isn't.
Add a test to cover this.

Fixes #297
2014-04-04 10:35:29 -07:00
Liam Newman
48df265665 Additional declaration tweaks based on a few more test inputs 2014-04-04 01:55:39 -07:00
Liam Newman
035363bb1f Rewrite declaration var, let, const indenting
Fixes  #256, #430
2014-04-04 01:18:26 -07:00
Liam Newman
d9ee1cb91c Reduce repetion in line wrap test input declaration
There's clarity and then there's too much...
2014-04-01 12:24:58 -07:00
Liam Newman
de8731d46f Allow operators as wrap points when they follow another operator
Fixes #374
2014-04-01 10:23:23 -07:00
Liam Newman
2b098da789 Support for non-ASCII characters in variable names
Fixes #305
2014-03-31 09:58:19 -07:00
Liam Newman
f7602b2d25 Support for keywords as IdentifierNames such as .catch()
This supports calling libraries which declare properties of objects using reserved words.
This does not support declaring these fields.

`var a = { 'throw': function() {} }` - works
`a.throw()` - works
`var a = { throw: function() {} }` - does not work

Fixes #309
Fixes #351
Fixes #368
Fixes #378
2014-03-27 18:12:31 -07:00
Liam Newman
6a3f667404 Merge pull request #435 from Marsup/feature/var_let_const
Consider var, let and const as equal
2014-03-27 09:59:41 -07:00
Liam Newman
ab76f3cc6c Merge pull request #433 from Marsup/feature/fat_arrow
Fix #402: support ES6 fat arrow
2014-03-26 16:58:48 -07:00
Marsup
c7bddbb624 Consider var, let and const as equal 2014-03-27 00:51:36 +01:00
Marsup
507977eff3 Add support for ES6 template strings 2014-03-27 00:51:01 +01:00
Marsup
941bbd0859 Fix #402: support ES6 fat arrow 2014-03-27 00:50:33 +01:00
Einar Lielmanis
4a8fb09e69 Merge pull request #411 from arcanis/master
Add --space-in-empty-paren (-E) option, fix #409
2014-03-25 19:44:29 +02:00
Maël Nison
9e326ac78b Add --space-in-empty-paren (-E) option, fix #409 2014-03-25 16:43:30 +01:00
Michael Williamson
59b765ab99 Fix: indent_handlebars is global 2014-03-25 13:03:31 +00:00
Ben Duncan
af0ad2915b fixing disabled line wrapping for HTML 2014-03-20 11:09:07 +00:00
Daniel Stockman
f418a6a09f Add missing semicolon. Fixes #420 2014-03-05 10:45:55 -08:00
Guille
432ad93975 Fixed require.js support following instructions from https://github.com/jrburke/r.js/issues/558#issuecomment-33546625 2014-02-24 11:41:47 +01:00
Guille
3ce7333f46 Fixes to requirejs define blocks 2014-02-24 11:22:14 +01:00
Einar Lielmanis
ed5b72fce6 Tiny cleanups 2014-02-18 13:41:39 +02:00
Jerry Charumilind
af921c6d64 Fix indentation 2014-02-15 08:17:43 -08:00
Jerry Charumilind
d768afe9df Fix whitespace handling for img tags
"<img> content" is beautified to become "<img>content".  However, the
space should be preserved, as it has meaning.  This commit fixes this
issue by being more careful to preserve whitespace in the appropriate
places.
2014-02-15 08:14:02 -08:00
Daniel Stockman
f416b0b0a4 Fix CSS pseudo-class and pseudo-element formatting. Closes #363 2013-11-22 17:01:40 -08:00
Daniel Stockman
0e73419476 Lint beautify-css.js 2013-11-22 13:13:45 -08:00
Einar Lielmanis
13e8132417 Improve un.p.acker detection, fix #357 2013-11-13 14:01:59 +02:00
Martin Hansen
97899836a7 Removed redundant testcase 2013-11-10 20:31:25 +01:00
Martin Hansen
b3197e7c69 Added support for single line comments at end of line 2013-11-10 19:50:28 +01:00
Martin Hansen
8d27ea1976 Added a couple more testcases 2013-11-10 16:16:04 +01:00
Martin Hansen
3fc505d0ff Moved tests to right section 2013-11-09 15:36:56 +01:00
Martin Hansen
19f1367a38 Added single line comment support 2013-11-09 12:23:32 +01:00
Joerg Sonnenberger
c87fad31b7 Typo 2013-10-27 19:56:17 +01:00
Liam Newman
b85b8e645f One more wrap_line_length parsing issue
Fixes #342
2013-10-24 16:16:09 -07:00
Daniel Stockman
0e18f39a1b Merge branch 'master' into python-cssbeautifier
Conflicts:
	js/test/beautify-tests.js
2013-10-17 11:49:59 -07:00
Daniel Stockman
c1b7f1a388 Pass css_beautify to run_beautifier_tests in node_beautifier_tests. Fixes #337 2013-10-17 11:37:22 -07:00
Thorben Bochenek
119202c0ec correct options comment 2013-10-16 10:37:36 +02:00
Thorben Bochenek
ba9ca2fc41 change option selector_separator to selector_separator_newline 2013-10-16 09:41:04 +02:00
Thorben Bochenek
caaa29f772 revert accidentally checked in change to run-tests 2013-10-15 11:59:56 +02:00
Thorben Bochenek
07f0dca665 provide tests for beautify-css.js 2013-10-15 11:49:47 +02:00
Liam Newman
da0323d551 Merge pull request #334 from dertseha/win_home
Making .jsbeautifyrc resolve work (in general and for Windows re home dir)
2013-10-14 10:00:28 -07:00
Thorben Bochenek
7a45f93194 add option "remove_trailing_zero"
the option is disabled by default and will remove trailing zeros from floating point values (e.g. 0.9 to .9)
2013-10-14 16:57:53 +02:00
Thorben Bochenek
b63dc533e7 don't add a newline between "{" and "}" when there is nothing in-between
before ".tabs {}" resulted in ".tabs {\n}". The rule is of course useless but a popular starting point
2013-10-14 16:36:56 +02:00
Thorben Bochenek
210dd48ae7 introduce new option "end_with_newline".
The default value is "false" and this will make sure that the output ends with a newline ("\n")
2013-10-14 16:31:42 +02:00
Thorben Bochenek
35c34d8450 add a newline after header-comments 2013-10-14 16:16:25 +02:00
Thorben Bochenek
27b65a5189 make sure there is exactly one whitespace after a colon (making a rule look like "color: red", not like "color:red") 2013-10-14 16:10:26 +02:00
Thorben Bochenek
769ab43e71 rename 'coma' to 'endChar' to represent more closely what it actually means 2013-10-14 15:42:24 +02:00
Thorben Bochenek
9c4c91751d put "whiteRe.test(output[output.length - 1]);" (used twice) in function 2013-10-14 15:41:38 +02:00
Thorben Bochenek
0e5225d539 beautify with js-beautify 2013-10-14 15:40:54 +02:00
Christian Haas
5653b56d45 Added tests for .jsbeautifyrc resolve algorithm of cli.js 2013-10-12 07:08:15 +02:00
Liam Newman
132fc95e90 Line wrapping disabling in html_beautify fixed for web
Fixes #306
2013-10-11 16:03:06 -07:00
Liam Newman
d0d79c9154 Add Block_comments to skipped token types 2013-10-11 15:19:23 -07:00
Christian Haas
75ea3aae75 #300 Making .jsbeautifyrc resolve work
* not using cc.find() anymore:
** using dedicated find based on cwd (cc uses __dirname, resolving to install dir of node_modules)
** not using recursive lookup when resolving file from user home
* user directory is either HOME or USERPROFILE (for windows)
2013-10-11 20:41:41 +02:00
Einar Lielmanis
d953b6751b Implement flags.had_comment, fix #329, fix #291
We deliberately lose token_type = TK_COMMENT and TK_INLINE_COMMENT to
allow their transparent handling. To counteract this, flags.had_comment
counter-spell is implemented, so that we had a possibility to know that
there was, in fact, a comment somewhere.

Thus, we can fix some corner-cases where an unexpected comment might
break the structure.
2013-10-11 06:36:35 +03:00
Liam Newman
33082bda27 Allow wrapping of tokens inside an object literal property
When a token is not the first one in a object literal property, we should allow wrapping of those tokens.

Fixes #331
2013-10-10 18:15:44 -07:00
Einar Lielmanis
7693fc8c81 CLI: do not breed duplicate eof newlines #325 2013-09-10 08:02:41 +03:00
Einar Lielmanis
790f07a2bb Empty parens will never contain space, ref #320
space-in-paren setting up until now formatted empty parens with space in
them:

    function ( ) {
        foo( ).bar( a + 1)
    }

Now it skips this space for greater readability and prettier code.

    function () {
        foo().bar( a + 1 )
    }

If you have a good use case for the old behavior, open the issue, I
couldn't find any reason for that.
2013-08-27 23:49:37 +03:00
Einar Lielmanis
d40f246254 indent_handlebars instead of options.indent_handlebars
If we decide to make indent_handlebars true by default,
this would be a source of subtle bugs.
2013-08-27 20:21:20 +03:00
Einar Lielmanis
a045c45000 Merge pull request #321 from quisquous/handlebars
indent_handlebars support, HTML tests
2013-08-27 10:19:12 -07:00
Adrienne Walker
2e1b94a3b0 Support quotes inside of Handlebars expressions in strings 2013-08-26 22:36:10 -07:00
Adrienne Walker
499f9b6309 Add handlebars support
This adds a new 'indent_handlebars' option to the beautify-html
formatter.  When not turned on, anything inside handlebars {{ }} will be
treated as normal content as before.

When turned on, Handlebars block expressions (e.g. {{#anything}},
{{/anything}}, and special case {{else}}) are treated identically to
formatted HTML tags and indented properly.

Handlebars expressions inside of HTML tags get spaces on either side.

Handlebars expression in quotes are left unformatted.
2013-08-26 22:36:06 -07:00
Adrienne Walker
710def6d00 Add basic beautify-html js tests 2013-08-26 22:35:49 -07:00
Martin Hansen
71cf7187b6 removed the tab indent check from the cli, duplication of code and could confuse 2013-08-16 23:22:29 +02:00
Martin Hansen
bfcf66fe05 now checks for tag indent in beautify.js itself, also updated tests 2013-08-16 23:21:42 +02:00
Jon Schlinkert
163ed6b388 CLI option 2013-07-27 21:33:26 -04:00
Jon Schlinkert
c85dcf0eba add option to indent "inner HTML", since <head> and <body> tags are no longer indented by default. 2013-07-27 21:11:09 -04:00
Franček Prijatelj
901180475e Update cli.js
HOME environment variable usually not defined in windows.
2013-07-06 09:20:22 +02:00
eleith
1096681920 export the same variable as the other methods 2013-07-03 11:21:52 -07:00
Einar Lielmanis
513dfdb5f7 @eleith: make require.js optimizable
@eleith:
when you passin the require module through the define function, i'm
unable to get r.js (require's node module for optimizing scripts) to
properly optimize beautify-html. my guess is that it does not read that
beautify-html has two dependencies.

however, when using define's first parameter option which is to pass an
array of dependency, r.js properly picks up the dependencies and bundles
them in the optimization process.
2013-07-03 20:52:46 +03:00
Einar Lielmanis
4d9c10797f @eleith: jshint cleanup 2013-07-03 20:51:20 +03:00
Rasmus Erik Voel Jensen
6575b2aee4 merge with master branch 2013-06-14 06:13:37 +02:00
Liam Newman
00633ae755 Apply beautifier to existing javascript 2013-06-11 10:27:37 -07:00
Liam Newman
cf009df6df Fix for performance degradation due to minimal indentation
Changed output to an array of OutputLine objects

Fixes #288
2013-06-10 22:48:58 -07:00
Liam Newman
bc65764503 Simple performance test for node js-beautify 2013-06-09 21:30:29 -07:00
Liam Newman
cef93d0c52 Merge pull request #286 from bitwiseman/minimal-indent
Minimal indenting
2013-06-09 20:31:38 -07:00
Liam Newman
13ea1afd7d Typo fix
Another good catch by @Infocatcher
2013-06-09 21:28:33 -06:00
Liam Newman
3d61d6ddc4 Python parity for features 2013-06-09 16:25:58 -07:00
Liam Newman
ae8dcd88c0 Tweaks to recent commits 2013-06-09 16:25:58 -07:00
Liam Newman
34451389b6 Tests for newline preservation at close of expression
Closes #239
2013-06-09 16:25:58 -07:00
Liam Newman
b5b90a9a39 Allow newline preservation for function declarations 2013-06-09 16:25:58 -07:00
Liam Newman
68a8542d6d Minimal indenting for expressions and arrays
Closes #281
2013-06-09 16:25:58 -07:00
Liam Newman
95250c6f48 Do not indent html element content
Most formatters I've seen flatten the html tag since it is always present
2013-06-09 14:55:52 -07:00
Liam Newman
e5b8834919 Support preserve newlines after start and end tags 2013-06-09 14:45:39 -07:00
Liam Newman
812dd55009 Merge pull request #274 from sapienlab/master
Add support for Asynchronous Module Definition (AMD) API
2013-06-09 11:14:46 -07:00
Liam Newman
151f213d7d Unformatted at the start of a new line should not add extra space
Fixes #285
2013-06-08 20:32:59 -07:00
Liam Newman
2016e5b2a9 Added (still disabled) tests for #256 2013-06-08 19:47:46 -07:00
Liam Newman
a9f3d1a309 Minor fixes based on feedback from @Infocatcher 2013-06-07 14:31:46 -07:00
Liam Newman
62f467c3ce Deprecate html beautifier max_char 2013-06-07 12:04:24 -07:00
Liam Newman
71d251582f Preserve newlines option in html beautifier
Closes #280
2013-06-07 12:04:24 -07:00
Rasmus Erik Voel Jensen
ce4451b5fe e4x xml matching regexp missed some valid element/attribute names - js implemented - ascii charset only 2013-06-07 13:03:55 +02:00
Liam Newman
e231618b1a Merge pull request #279 from DBCDK/e4x-inline-expression
E4X xml-literal small fixes
2013-06-06 07:54:21 -07:00
Rasmus Erik Voel Jensen
09c8134dda E4X python tests and implementation of xml literal inline expressions, CDATA, and quotes (+ improved tests in JavaScript) 2013-06-06 09:54:07 +02:00
Liam Newman
75cccc4371 Simplify conditional comment formatting
We now treat tags between if-endif conditionals as comments.
This is not ideal, but is significantly better than it was.

Closes #91
2013-06-05 21:41:40 -07:00
Rasmus Erik Voel Jensen
3fc2d503dd e4x quote in xml literal: more tests 2013-06-06 06:27:01 +02:00
Rasmus Erik Voel Jensen
47b8d072b0 e4x single quotes in e4x xml literals 2013-06-04 15:20:33 +02:00
Rasmus Erik Voel Jensen
5208038578 e4x CDATA support 2013-06-04 09:56:14 +02:00
Liam Newman
e3c02e1f27 Mkdirp when using -o option
Closes #270
2013-06-03 13:47:15 -07:00
Liam Newman
70a46754d2 Function and inline statement indentation fixes
I don't like to close multiple bugs in a one shot, but these all tie together and overlap.

Fixes #268
Fixes #275
Fixes #276
2013-06-03 13:15:59 -07:00
Rasmus Erik Voel Jensen
c4069204f7 e4x handle inline expressions in tagname or property value of e4x inline xml 2013-06-03 21:39:40 +02:00
Rodrigo González
1b856de26c Add support for Asynchronous Module Definition (AMD) API
See http://requirejs.org/docs/whyamd.html
2013-06-02 22:59:57 -03:00
Liam Newman
8fe8e64922 Merge pull request #267 from will-v-king/master
added a deindent() function .
2013-05-26 21:10:28 -07:00
will
7ef99798d8 add deindent() function in both js/lib/beautify.js and python/jsbeautifier/__init__.py .
deindent() is used to reverse the indent() action.
2013-05-27 10:24:00 +08:00
Liam Newman
a1113ff472 One more test for brace formatting
Closes #268
2013-05-26 13:44:37 -07:00
Liam Newman
6f0ab2e754 Fix brace format flip-flop
Fixes #258
2013-05-25 21:19:23 -07:00
Liam Newman
772437e8dc Streamline block comment code path
Related to #258
2013-05-24 21:50:51 -07:00
Liam Newman
6210928940 Test for another brace indenting case
Closes #262
2013-05-24 19:08:00 -07:00
Liam Newman
3f3fd7bf5c Do not add extra space during keep_array_indentation
Also, handle a few more edge cases while using keep array indentation

Fixes #263
2013-05-24 18:56:43 -07:00
Liam Newman
dd1c5d01d7 Add tests for keep_array_indentation = false 2013-05-24 17:27:09 -07:00
Liam Newman
8ec9cb1dd4 Cleaner expression and array litteral indenting
Fixes #259
2013-05-24 16:41:29 -07:00
Liam Newman
1fa788702f Ensure beautified output is the same when rebeautified
#258 surfaced and interersting issue that was not caught by the
current test framework.  Now the framework checks that beautified
output is unchanged after being run through the beautifier again.

Adding this check immediately found a bug in the beautification of
function declarations. Fixed that as well.
2013-05-09 14:34:15 -07:00
Liam Newman
bc82f08dbf Merge pull request #241 from johnkpaul/fix_issue_241
Beautifying function call chains that end with a callback results in incorrect formatting
2013-05-08 12:05:02 -07:00
John K. Paul
cb4ae314aa Fix #241, check if dot after newline, and change indentation 2013-05-08 14:21:10 -04:00
Ken Struys
c081cdde0e fixed broken run tests script 2013-05-02 17:31:33 -07:00
Liam Newman
85e3464a4d Add e4x option santization
This got lost during the pull request somehow.
2013-04-29 13:29:07 -07:00
Liam Newman
c8e53084bc Support loading beautifiers into global if other options fail
Closes #249
2013-04-28 13:17:48 -07:00
Einar Lielmanis
e9d19c4113 p.acker unpacker: add the missing test 2013-04-28 10:09:33 +03:00
Einar Lielmanis
fd14728506 Minor update of p_a_c_k_e_r unpacking
Splitting into the packed chunks was failing, if the packed code
contained "{}))" string of symbols. Now the detection is sliiiightly
better.
2013-04-28 02:26:42 +03:00
Liam Newman
e8352cdbd0 Make functions inside arrays behave like sub-array literals.
function declarations inside array literals should behave like
a sub-array declaration: [[a,b],[c,d]] should format about the same as [function(){},[c,d]]

This is not perfect, but it is better than it was and we now have test coverage.

Closes #246
2013-04-26 15:08:38 -07:00
Liam Newman
82e18999a1 Tests for spaces inside square bracket support
Introduced but not tested as part of #235.
Closes #126.
2013-04-25 11:47:06 -07:00
Liam Newman
a1fa05c4b0 Make "// comment" stay on the same line when input indicates it
Closes #242
2013-04-23 11:43:22 -07:00
Liam Newman
deb38fe531 Rename wanted_newline to input_wanted_newline 2013-04-23 09:38:13 -07:00
Liam Newman
54701f8996 Merge remote-tracking branch 'rasmuserik/e4x'
Conflicts:
	js/test/beautify-tests.js
2013-04-21 18:51:17 -07:00
Liam Newman
fd00a7e245 Tests for space_in_paren false that match
The pattern I've been using for options is to have the same inputs, and
test for the differing outputs.
2013-04-19 15:14:37 -07:00
Liam Newman
aad87666ca Make e4x pay-for-play - no effect when option not enabled 2013-04-19 14:46:43 -07:00
Rasmus Jensen
7dbd03a2d3 more tests + robustness fix for unterminated xml literal 2013-04-19 16:27:35 +02:00
Rasmus Jensen
b90b6b9bac move xml-literal handling into TK_STRING section 2013-04-19 14:27:14 +02:00
Rasmus Jensen
3f4676bde1 more test-cases 2013-04-19 12:58:14 +02:00
Rasmus Jensen
7f9c57358c use opt instead of options; use bt instead of test_fragment 2013-04-19 12:39:45 +02:00
Rasmus Jensen
58bac2f623 merge 2013-04-19 12:31:03 +02:00
Rasmus Jensen
9497dc5865 rename --pad-in-paren to --space-in-paren 2013-04-19 12:27:34 +02:00
Liam Newman
bc62583fd5 Remove expand-strict and fix brace tests
While removing expand-strict, found that brace tests were uneven.
Made all tests appear for all three settings, and adjusted for each.
There are still some minor odd behaviors around empty braces, but they are
non-breaking.

Closes #236, #237
2013-04-19 00:28:10 -07:00
Rasmus Jensen
7ab458f487 tests 2013-04-18 08:39:11 +02:00
Rasmus Jensen
8d4e460259 Merge github.com:einars/js-beautify into e4x 2013-04-18 08:19:57 +02:00
Rasmus Jensen
aab53a7eb2 updated tests, such that e4x is off by default, and xml-literal is tested both with and without e4x option enabled 2013-04-18 08:18:54 +02:00
Liam Newman
fb071807a8 Test CLI missing file output for html and css 2013-04-16 10:04:47 -07:00
Liam Newman
79e7eea27c Python test shell script output for missing input file 2013-04-16 09:55:56 -07:00
Liam Newman
bf09af14e6 Typo fix in shell text 2013-04-14 17:15:04 -07:00
Liam Newman
9355d6a0a1 Clean up the shell smoke tests 2013-04-14 15:24:38 -07:00
Liam Newman
e91a12e551 Add shell smoke tests for node.js cli
First steps for #209
2013-04-13 18:59:19 -07:00
Rasmus Jensen
5bbad19a1c use output_space_before_token, instead of deprecated print_single_space 2013-04-12 11:44:31 +02:00
Rasmus Jensen
ee9c61b8bb bugfix: -h option did not work due to path of package.json not updated in cli.js 2013-04-12 11:38:52 +02:00
Rasmus Jensen
f8cda9cf13 padding space in paren 2013-04-12 11:36:20 +02:00
Rasmus Jensen
0036967763 option for ignoring e4x literals 2013-04-12 11:21:44 +02:00
Rasmus Jensen
e10042eecd test case 2013-04-12 11:13:01 +02:00
Liam Newman
44586d7a60 Add tweak to switch/case tests
Provide counter test using same inputs for jslint_happy = false.

Additional for #230, #213.
2013-04-10 16:40:17 -07:00
Mathieu Quinette
39275fc613 Add tests for jslint_happy switch/case. 2013-04-09 21:40:19 +02:00
Mathieu Quinette
0c29aaa902 close #213: jslint_happy option will make switch/case at same indent level. 2013-04-09 10:20:33 +02:00
Liam Newman
ddc44e65c4 Add $HOME to config chain
Most direct fix.

Closes #228.
2013-04-08 12:56:37 -07:00
Mathieu Quinette
9086a796d6 Use index so testj will error if pathway is incorrect. 2013-04-08 09:03:05 +02:00
Mathieu Quinette
11f2b5975f Fix path to beautify libs. 2013-04-07 09:16:04 +02:00
Liam Newman
9de057f94c Reorganize file structure by language/platform
Moved all files that are specifically for the website into web (except for index.htm)
Moved all files that are javascript (for node or web) into js
Organized js folder to generally follow node structures

This change also changes .npmignore to include unpackers in the package.
First step on #224.
2013-04-04 15:51:19 -07:00