Skip to content

Commit

Permalink
npm publish - size
Browse files Browse the repository at this point in the history
  • Loading branch information
jonroig committed Sep 1, 2024
1 parent a959e91 commit 622834b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "usbabynames",
"version": "2.1.1",
"version": "2.1.2",
"description": "Returns data about baby names used in the United States 1880-2021",
"main": "lib/usBabyNames.mjs",
"scripts": {
Expand Down
5 changes: 5 additions & 0 deletions unzip.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// unpack the state baby name data
import { fileURLToPath } from 'url';
import { dirname, join } from 'path';
import fs from 'fs';

const __filename = fileURLToPath(import.meta.url);
const __dirname = dirname(__filename);
Expand All @@ -19,14 +20,18 @@ const unzip = async () => {
const usNameDetailsZip = new AdmZip(usNameDetailsZipFilePath);
usNameDetailsZip.extractAllTo(outputDir, true);
console.log('...usNameDetailsZip unpacked');
fs.unlinkSync(usNameDetailsZipFilePath);


const stateNameZip = new AdmZip(stateNameZipFilePath);
stateNameZip.extractAllTo(outputDir, true);
console.log('...stateNameZip unpacked');
fs.unlinkSync(stateNameZipFilePath);

const usNameZip = new AdmZip(usNameZipFilePath);
usNameZip.extractAllTo(outputDir, true);
console.log('...usNameZip unpacked');
fs.unlinkSync(usNameZipFilePath);

console.log('\n\nus baby names unpacked!\n\n');
};
Expand Down

0 comments on commit 622834b

Please sign in to comment.