Skip to content
This repository has been archived by the owner on Jul 10, 2019. It is now read-only.

Commit

Permalink
restructure files
Browse files Browse the repository at this point in the history
  • Loading branch information
Felix Hammerl committed Sep 13, 2013
1 parent 24da0f1 commit 8a04b01
Show file tree
Hide file tree
Showing 9 changed files with 31,106 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"Brian White (https://github.com/mscdex)"
],

"main": "iconv-lite.js",
"main": "src/iconv-lite.js",
"homepage": "https://github.com/ashtuchkin/iconv-lite",
"repository": {
"type": "git",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions iconv-lite.js → src/iconv-lite.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,10 +212,10 @@ define(function(require) {

function loadEncodings() {
if (!iconv.encodingsLoaded) {
[require('./encodings/singlebyte'),
require('./encodings/gbk'),
require('./encodings/big5'),
require('./encodings/filemapping')
[require('./singlebyte'),
require('./gbk'),
require('./big5'),
require('./filemapping')
].forEach(function(encodings) {
for (var key in encodings)
iconv.encodings[key] = encodings[key]
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/filemapping-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ vows.describe("CP949 tests").addBatch({
},

"compare with iconv result": function() {
var mapfolder = path.join(path.dirname(module.filename), "../encodings/filemapping");
var mapfolder = path.join(path.dirname(module.filename), "filemapping");
var files = fs.readdirSync(mapfolder);
var t;
for (i=0; i<files.length; i++)
Expand Down
Loading

0 comments on commit 8a04b01

Please sign in to comment.