{"_id":"@bastos71/nolybab-js","_rev":"6-68031153adbc617fe63f61677e592cf0","time":{"created":"2024-02-04T11:50:28.849Z","1.0.0":"2024-02-04T11:44:32.706Z","modified":"2024-05-20T10:32:25.530Z","1.0.0-beta1":"2024-02-04T11:50:29.150Z","1.0.0-beta2":"2024-02-04T12:08:33.659Z","1.0.0-beta3":"2024-02-04T12:21:28.173Z","1.0.0-beta4":"2024-05-20T10:32:25.386Z"},"name":"@bastos71/nolybab-js","dist-tags":{"latest":"1.0.0-beta4"},"versions":{"1.0.0-beta1":{"name":"@bastos71/nolybab-js","version":"1.0.0-beta1","description":"CLI based tool for converting i18n to csv and csv to i18n files","main":"./lib/index.js","types":"./lib/types.d.ts","scripts":{"test":"npx jest","build":"tsc -p .","prepublishOnly":"npm run build","dev":"ts-node src/index.ts"},"keywords":["nolybab","i18n","csv","i18n-to-csv","csv-to-i18n"],"author":{"name":"fima.apps@gmail.com"},"license":"MIT","dependencies":{"chalk":"^4.1.2","yargs":"^17.3.1"},"devDependencies":{"@types/jest":"^27.4.0","@types/node":"^17.0.8","@types/yargs":"^17.0.8","@typescript-eslint/eslint-plugin":"^5.44.0","@typescript-eslint/parser":"^5.44.0","eslint":"^8.28.0","eslint-config-airbnb-typescript":"^17.0.0","jest":"^27.4.7","ts-jest":"^27.1.3","ts-node":"^10.7.0","typescript":"^4.5.4"},"bin":{"nolybab":"lib/index.js"},"repository":{"type":"git","url":"git+https://github.com/fima-taf/nolybab-js.git"},"bugs":{"url":"https://github.com/fima-taf/nolybab-js/issues"},"homepage":"https://github.com/fima-taf/nolybab-js#readme","_id":"@bastos71/nolybab-js@1.0.0-beta1","gitHead":"7abd53f51b7f7a9f3747636d93208de0256ee3b0","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-Itl9qW4NTg7ccmLqbyE8V6JJ47xTPb7+LxdiDVZw2bB6XUnea4q0KEPh+1fNZCWwiVHV9omL3RdJwh3dI9vOyQ==","shasum":"849a9ab833d85f0b84c43be4f063d9f43a34fa49","tarball":"https://registry.npmjs.org/@bastos71/nolybab-js/-/nolybab-js-1.0.0-beta1.tgz","fileCount":52,"unpackedSize":71097,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBBa/5ia/a1aPgh9dkO3lWR5Y9T6TsDB5wzak1PwtB79AiEA48bt5zStRV/gEf9aREWkywozL/VxZYoobnjtiDXc5QQ="}]},"_npmUser":{"name":"bastos71","email":"bastien.serprix@gmail.com"},"directories":{},"maintainers":[{"name":"bastos71","email":"bastien.serprix@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nolybab-js_1.0.0-beta1_1707047428965_0.9357816122557414"},"_hasShrinkwrap":false},"1.0.0-beta2":{"name":"@bastos71/nolybab-js","version":"1.0.0-beta2","description":"CLI based tool for converting i18n to csv and csv to i18n files","main":"./lib/index.js","types":"./lib/types.d.ts","scripts":{"test":"npx jest","build":"tsc -p .","prepublishOnly":"npm run build","dev":"ts-node src/index.ts"},"keywords":["nolybab","i18n","csv","i18n-to-csv","csv-to-i18n"],"author":{"name":"fima.apps@gmail.com"},"license":"MIT","dependencies":{"chalk":"^4.1.2","yargs":"^17.3.1"},"devDependencies":{"@types/jest":"^27.4.0","@types/node":"^17.0.8","@types/yargs":"^17.0.8","@typescript-eslint/eslint-plugin":"^5.44.0","@typescript-eslint/parser":"^5.44.0","eslint":"^8.28.0","eslint-config-airbnb-typescript":"^17.0.0","jest":"^27.4.7","ts-jest":"^27.1.3","ts-node":"^10.7.0","typescript":"^4.5.4"},"bin":{"nolybab":"lib/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/fima-taf/nolybab-js.git"},"bugs":{"url":"https://github.com/fima-taf/nolybab-js/issues"},"homepage":"https://github.com/fima-taf/nolybab-js#readme","_id":"@bastos71/nolybab-js@1.0.0-beta2","gitHead":"d15bb8649baf55f3c711eaa2df6f0537a4753012","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-VKiLf9LR3mJ1aqjAO0t0VdWN4fLWL5ZotmzTXa4XN/NLqEq5ymcnQi3DxdVOmZF3QFQaZTQV+rBNL8X2vrFMBQ==","shasum":"cfaa8c054c40188af4ba9f4b9b4833ff70e376ff","tarball":"https://registry.npmjs.org/@bastos71/nolybab-js/-/nolybab-js-1.0.0-beta2.tgz","fileCount":52,"unpackedSize":71122,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8mXv46Ar2UCx8bhAXMgpoFG3Vfm8f8r+To8Vy0KPiJgIgYDHP1lye0TKlf4/0yAEZIQNJkJzTlQkFKfpVbSzxgsU="}]},"_npmUser":{"name":"bastos71","email":"bastien.serprix@gmail.com"},"directories":{},"maintainers":[{"name":"bastos71","email":"bastien.serprix@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nolybab-js_1.0.0-beta2_1707048513502_0.9750385659356999"},"_hasShrinkwrap":false},"1.0.0-beta3":{"name":"@bastos71/nolybab-js","version":"1.0.0-beta3","description":"CLI based tool for converting i18n to csv and csv to i18n files","main":"./lib/index.js","types":"./lib/types.d.ts","scripts":{"test":"npx jest","build":"tsc -p .","prepublishOnly":"npm run build","dev":"ts-node src/index.ts"},"keywords":["nolybab","i18n","csv","i18n-to-csv","csv-to-i18n"],"author":{"name":"fima.apps@gmail.com"},"license":"MIT","dependencies":{"chalk":"^4.1.2","yargs":"^17.3.1"},"devDependencies":{"@types/jest":"^27.4.0","@types/node":"^17.0.8","@types/yargs":"^17.0.8","@typescript-eslint/eslint-plugin":"^5.44.0","@typescript-eslint/parser":"^5.44.0","eslint":"^8.28.0","eslint-config-airbnb-typescript":"^17.0.0","jest":"^27.4.7","ts-jest":"^27.1.3","ts-node":"^10.7.0","typescript":"^4.5.4"},"bin":{"nolybab":"lib/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/bastos71/nolybab-js.git"},"bugs":{"url":"https://github.com/fima-taf/nolybab-js/issues"},"homepage":"https://github.com/bastos71/nolybab-js/tree/fork/release#readme","_id":"@bastos71/nolybab-js@1.0.0-beta3","gitHead":"c688a04853058530903ad6ad2823a6bf8dcc7c8f","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-MVO7eKRVX3USxniLGWC5TcINUAytYxpEsyfovmavJ+LHZPyV2LarS8aNXGbFoYDx1JwZ0YN4UOO3TEOHVFVL8w==","shasum":"e644dfdaad186ae649d654c2e7c5e27b4e6c8bec","tarball":"https://registry.npmjs.org/@bastos71/nolybab-js/-/nolybab-js-1.0.0-beta3.tgz","fileCount":52,"unpackedSize":71140,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD8IdXTQgdkC+CPh5X/6QAWj9BgZCfDi8t5Ecciy7la/wIgOOlk2KGikbckcU/W8O6+Tiai6FzAKYXanjHawo4mngw="}]},"_npmUser":{"name":"bastos71","email":"bastien.serprix@gmail.com"},"directories":{},"maintainers":[{"name":"bastos71","email":"bastien.serprix@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nolybab-js_1.0.0-beta3_1707049287966_0.3747494530282591"},"_hasShrinkwrap":false},"1.0.0-beta4":{"name":"@bastos71/nolybab-js","version":"1.0.0-beta4","description":"CLI based tool for converting i18n to csv and csv to i18n files","main":"./lib/index.js","types":"./lib/types.d.ts","scripts":{"test":"npx jest","build":"tsc -p .","prepublishOnly":"npm run build","dev":"ts-node src/index.ts"},"keywords":["nolybab","i18n","csv","i18n-to-csv","csv-to-i18n"],"author":{"name":"fima.apps@gmail.com"},"license":"MIT","dependencies":{"chalk":"^4.1.2","yargs":"^17.3.1"},"devDependencies":{"@types/jest":"^27.4.0","@types/node":"^17.0.8","@types/yargs":"^17.0.8","@typescript-eslint/eslint-plugin":"^5.44.0","@typescript-eslint/parser":"^5.44.0","eslint":"^8.28.0","eslint-config-airbnb-typescript":"^17.0.0","jest":"^27.4.7","ts-jest":"^27.1.3","ts-node":"^10.7.0","typescript":"^4.5.4"},"bin":{"nolybab":"lib/src/index.js"},"repository":{"type":"git","url":"git+https://github.com/bastos71/nolybab-js.git"},"bugs":{"url":"https://github.com/fima-taf/nolybab-js/issues"},"homepage":"https://github.com/bastos71/nolybab-js/tree/fork/release#readme","_id":"@bastos71/nolybab-js@1.0.0-beta4","gitHead":"0aa760ddacdd115f4d888900943f836f8f03069e","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-b9eg2Yr4nVPpocWk+rCs8mZNhbZiIWGtL1gSRGXyn1SXfoAxy0jAHYJ8TQuD7CznnbhmRcpZSWI/mqj+H8G+mw==","shasum":"0614cc5848ba91f00d1f715ab84dceadd37f8f57","tarball":"https://registry.npmjs.org/@bastos71/nolybab-js/-/nolybab-js-1.0.0-beta4.tgz","fileCount":52,"unpackedSize":71511,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHDEqssYLFdsPQ8B6TWqVk+1F77VtKofBxIkXfbZddUzAiBlb+Bf6obGquGg21SG7/SGxhUXVLEegnyjq879pJ6wuA=="}]},"_npmUser":{"name":"bastos71","email":"bastien.serprix@gmail.com"},"directories":{},"maintainers":[{"name":"bastos71","email":"bastien.serprix@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/nolybab-js_1.0.0-beta4_1716201145229_0.6109198512520695"},"_hasShrinkwrap":false}},"maintainers":[{"name":"bastos71","email":"bastien.serprix@gmail.com"}],"description":"CLI based tool for converting i18n to csv and csv to i18n files","homepage":"https://github.com/bastos71/nolybab-js/tree/fork/release#readme","keywords":["nolybab","i18n","csv","i18n-to-csv","csv-to-i18n"],"repository":{"type":"git","url":"git+https://github.com/bastos71/nolybab-js.git"},"author":{"name":"fima.apps@gmail.com"},"bugs":{"url":"https://github.com/fima-taf/nolybab-js/issues"},"license":"MIT","readme":"# Nolybab JS\n\nA CLI based tool for converting i18n to csv and csv to i18n files.  \nThis tool allow you to quickly convert all your i18n (json) files in your project into a csv file and vice versa.\n\n## Table of Contents\n* [Install](#install)\n* [Usage](#usage)\n* [Examples](#examples)\n* [License](#license)\n\n\n## Install\n```\nnpm install @bastos71/nolybab-js --save-dev\n```\n\n## Usage\n```\nnpx nolybab -a to-csv\nnpx nolybab -a to-i18n\n```\n```\nOptions:\n  -a, --action                  The action to be executed. to-csv | to-i18n\n                                                             [string] [required]\n  -m, --i18n-main-file-name          The name of the main i18n file\n                                                        [string] [default: \"en\"]\n  -i, --i18n-files-path         The path to the i18n files\n                                             [string] [default: \"src/languages\"]\n  -c, --csv-delimiter           The csv delimiter        [string] [default: \",\"]\n  -n, --csv-file-name  The name of the csv translations file\n                                                   [string] [default: \"nolybab\"]\n  -p, --csv-file-path  The path to the csv translations file\n                                             [string] [default: \"src/languages\"]\n```\n\n## Examples\nRunning the command `npx nolybab -a to-csv` will convert the following i18n json files:\n<details>\n  <summary>Click to see</summary>\n\n  ```js\n  export const en = {\n    hello: 'Hello',\n    yes: 'Yes',\n    no: 'No',\n    login: {\n      title: 'Login',\n      message: 'Please login'\n    },\n    home: {\n      description: 'Welcome to Nolybab',\n      header: {\n        title: 'Nolybab'\n      },\n      footer: {\n        credit: '2022 Nolybab'\n      },\n      body: {\n        about: {\n          title: 'About'\n        },\n        contact_us: 'Contact us'\n      }\n    }\n  }\n\n  export const fr = {\n    hello: 'Bonjour',\n    yes: 'Oui',\n    no: 'Non',\n    login: {\n      title: 'Connexion',\n      message: 'Veuillez vous connecter'\n    },\n    home: {\n      description: 'Bienvenue sur Nolybab',\n      header: {\n        title: 'Nolybab'\n      },\n      footer: {\n        credit: '2022 Nolybab'\n      },\n      body: {\n        about: {\n          title: 'Sur'\n        },\n        contact_us: 'Nous contacter'\n      }\n    }\n  }\n\n  export const es = {\n    hello: 'Hola',\n    yes: 'Sí',\n    no: 'No',\n    login: {\n      title: 'Acceso',\n      message: 'Por favor Iniciar sesión'\n    },\n    home: {\n      description: 'Bienvenido a nolybab',\n      header: {\n        title: 'Nolybab'\n      },\n      footer: {\n        credit: '2022 Nolybab'\n      },\n      body: {\n        about: {\n          title: 'Acerca de'\n        },\n        contact_us: 'Contacta con nosotros'\n      }\n    }\n  }\n  ```\n</details>\n\ninto the following csv file: \n\n<details>\n  <summary>Click to see</summary>\n\n  ```\n  ,en,es,fr\n  hello,Hello,Hola,Bonjour\n  yes,Yes,Sí,Oui\n  no,No,No,Non\n  login.title,Login,Acceso,Connexion\n  login.message,Please login,Por favor Iniciar sesión,Veuillez vous connecter\n  home.description,Welcome to Nolybab,Bienvenido a nolybab,Bienvenue sur Nolybab\n  home.header.title,Nolybab,Nolybab,Nolybab\n  home.footer.credit,2022 Nolybab,2022 Nolybab,2022 Nolybab\n  home.body.about.title,About,Acerca de,Sur\n  home.body.contact_us,Contact us,Contacta con nosotros,Nous contacter\n  ```\n\n  ![CSV file](https://user-images.githubusercontent.com/18335346/167492345-ee742731-9f66-4a8f-9f79-a6b37115fc91.png)\n\n</details>\n\nRunning the command `npx nolybab -a to-i18n` will convert the csv back into the i18n json files above\n\n## License\n\n[MIT](LICENSE)\n","readmeFilename":"README.md"}