Skip to content

Commit 622834b

Browse files
committed
npm publish - size
1 parent a959e91 commit 622834b

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "usbabynames",
3-
"version": "2.1.1",
3+
"version": "2.1.2",
44
"description": "Returns data about baby names used in the United States 1880-2021",
55
"main": "lib/usBabyNames.mjs",
66
"scripts": {

unzip.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// unpack the state baby name data
22
import { fileURLToPath } from 'url';
33
import { dirname, join } from 'path';
4+
import fs from 'fs';
45

56
const __filename = fileURLToPath(import.meta.url);
67
const __dirname = dirname(__filename);
@@ -19,14 +20,18 @@ const unzip = async () => {
1920
const usNameDetailsZip = new AdmZip(usNameDetailsZipFilePath);
2021
usNameDetailsZip.extractAllTo(outputDir, true);
2122
console.log('...usNameDetailsZip unpacked');
23+
fs.unlinkSync(usNameDetailsZipFilePath);
24+
2225

2326
const stateNameZip = new AdmZip(stateNameZipFilePath);
2427
stateNameZip.extractAllTo(outputDir, true);
2528
console.log('...stateNameZip unpacked');
29+
fs.unlinkSync(stateNameZipFilePath);
2630

2731
const usNameZip = new AdmZip(usNameZipFilePath);
2832
usNameZip.extractAllTo(outputDir, true);
2933
console.log('...usNameZip unpacked');
34+
fs.unlinkSync(usNameZipFilePath);
3035

3136
console.log('\n\nus baby names unpacked!\n\n');
3237
};

0 commit comments

Comments
 (0)