{"_id":"@booster-pack/i18n","_rev":"1-e5dd214e7af83eef5c25bfbba82a6364","name":"@booster-pack/i18n","description":"@booster-pack/i18n","dist-tags":{"latest":"0.0.1"},"versions":{"0.0.1":{"name":"@booster-pack/i18n","version":"0.0.1","description":"@booster-pack/i18n","license":"MIT","repository":{"type":"git","url":"git+https://github.com/booster-pack/i18n.git"},"author":{"name":"matthew harwood","email":"matthhar12@gmail.com","url":"www.morningharwood.com"},"keywords":["i18n, angular2, angular, static generator"],"files":["lib"],"main":"lib/index.js","typings":"lib/index.d.ts","scripts":{"clean":"rimraf lib && rimraf coverage","format":"prettier --write \"{src,__tests__}/**/*.ts\" --single-quote --trailing-comma es5","lint":"tslint --force --format verbose \"src/**/*.ts\"","prepublish":"npm run build","prebuild":"npm run clean && npm run format && npm run lint && echo Using TypeScript && tsc --version","build":"tsc --pretty","test":"jest","coverage":"jest --coverage","watch":"npm run build -- --watch","watch:test":"jest --watch"},"dependencies":{"@types/fs-extra":"^4.0.0","fs-extra":"^4.0.1"},"devDependencies":{"@types/jest":"^20.0.5","@types/node":"^8.0.0","coveralls":"^2.0.0","jest":"^20.0.4","jest-environment-node-debug":"^2.0.0","prettier":"^1.5.2","rimraf":"^2.0.0","ts-jest":"^20.0.7","ts-node":"^3.2.0","tslint":"^5.0.0","tslint-config-prettier":"^1.1.0","typescript":"^2.0.0"},"engines":{"node":">=6.0.0"},"jest":{"transform":{".(ts)":"<rootDir>/node_modules/ts-jest/preprocessor.js"},"testMatch":["**/?(*.)(spec|test).ts?(x)"],"moduleFileExtensions":["ts","js"],"testEnvironment":"node"},"bugs":{"url":"https://github.com/booster-pack/i18n/issues"},"homepage":"https://github.com/booster-pack/i18n#readme","directories":{"lib":"lib"},"gitHead":"8d4391cbe161327619bbda33efcf54f53a06469b","_id":"@booster-pack/i18n@0.0.1","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"watashi","email":"matthhar12@gmail.com"},"dist":{"integrity":"sha512-poyQpJSlTpwh3e5yeHgWa1g8TxUr3yUjyMF0vxYqy9B28UlSL/MWTjmNVbBFhM7+p1/m+1or3BQ4UfZPmzqdVQ==","shasum":"ccc7226a8615e4cc2d80860bb1112988bffa1009","tarball":"https://registry.npmjs.org/@booster-pack/i18n/-/i18n-0.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDA+BdPOElGOVfzABQ/6JjMzJW5KeD4HFW23ldhyhrLfAIhAOk/3JgBHpYfacByxEBbgEnq2AIcLX1vrJGQeKkeL8sX"}]},"maintainers":[{"name":"watashi","email":"matthhar12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/i18n-0.0.1.tgz_1503031734251_0.3549368556123227"}}},"readme":"[![Build Status](https://travis-ci.org/{{github-user-name}}/{{github-app-name}}.svg?branch=master)](https://travis-ci.org/{{github-user-name}}/{{github-app-name}}.svg?branch=master)\n[![Coverage Status](https://coveralls.io/repos/github/{{github-user-name}}/{{github-app-name}}/badge.svg?branch=master)](https://coveralls.io/github/{{github-user-name}}/{{github-app-name}}?branch=master)\n[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)\n\n# Using this module in other modules\n\nHere is a quick example of how this module can be used in other modules. The [TypeScript Module Resolution Logic](https://www.typescriptlang.org/docs/handbook/module-resolution.html) makes it quite easy. The file `src/index.ts` is a [barrel](https://basarat.gitbooks.io/typescript/content/docs/tips/barrel.html) that re-exports selected exports from other files. The _package.json_ file contains `main` attribute that points to the generated `lib/index.js` file and `typings` attribute that points to the generated `lib/index.d.ts` file.\n\n> If you are planning to have code in multiple files (which is quite natural for a NodeJS module) that users can import, make sure you update `src/index.ts` file appropriately.\n\nNow assuming you have published this amazing module to _npm_ with the name `my-amazing-lib`, and installed it in the module in which you need it -\n\n- To use the `Greeter` class in a TypeScript file -\n\n```ts\nimport { Greeter } from \"my-amazing-lib\";\n\nconst greeter = new Greeter(\"World!\");\ngreeter.greet();\n```\n\n- To use the `Greeter` class in a JavaScript file -\n\n```js\nconst Greeter = require('my-amazing-lib').Greeter;\n\nconst greeter = new Greeter('World!');\ngreeter.greet();\n```\n\n## Setting travis and coveralls badges\n1. Sign in to [travis](https://travis-ci.org/) and activate the build for your project.\n2. Sign in to [coveralls](https://coveralls.io/) and activate the build for your project.\n3. Replace {{github-user-name}}/{{github-app-name}} with your repo details like: \"ospatil/generator-node-typescript\".\n","maintainers":[{"name":"watashi","email":"matthhar12@gmail.com"}],"time":{"modified":"2022-04-04T20:09:20.529Z","created":"2017-08-18T04:48:54.320Z","0.0.1":"2017-08-18T04:48:54.320Z"},"homepage":"https://github.com/booster-pack/i18n#readme","keywords":["i18n, angular2, angular, static generator"],"repository":{"type":"git","url":"git+https://github.com/booster-pack/i18n.git"},"author":{"name":"matthew harwood","email":"matthhar12@gmail.com","url":"www.morningharwood.com"},"bugs":{"url":"https://github.com/booster-pack/i18n/issues"},"license":"MIT","readmeFilename":"README.md"}