{"_id":"a-builder","_rev":"3-05854f4a6817d4c908dfae0276ccc870","name":"a-builder","description":"a-builder","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"a-builder","version":"0.0.1","description":"a-builder","license":"MIT","repository":"","author":{"name":"Matthew Harwood","email":"matthhar12@gmail.com"},"keywords":[],"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":{"fs-extra":"^4.0.1","lodash":"^4.17.4"},"devDependencies":{"@types/fs-extra":"^4.0.0","@types/lodash":"^4.14.72","@types/jest":"^20.0.6","@types/node":"^8.0.20","coveralls":"^2.13.1","jest":"^20.0.4","jest-environment-node-debug":"^2.0.0","prettier":"^1.5.3","rimraf":"^2.6.1","ts-jest":"^20.0.10","ts-node":"^3.2.0","tslint":"~5.3.2","tslint-config-prettier":"^1.3.0","typescript":"^2.4.2"},"engines":{"node":">=6.0.0"},"jest":{"transform":{".(ts|tsx)":"<rootDir>/node_modules/ts-jest/preprocessor.js"},"testMatch":["**/?(*.)(spec|test).ts?(x)"],"moduleFileExtensions":["ts","tsx","js"]},"_id":"a-builder@0.0.1","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"watashi","email":"matthhar12@gmail.com"},"dist":{"integrity":"sha512-GZI1tTeNJ6ulQF3OJQZPmkiyGGFBQfFwCEpNYauy05VE5hvqhRq/3EzTC3I9z5imT182wvNJaaXfy6Ia7kEXcQ==","shasum":"98e6db9992daa1bfea011a04794b2958cdd41ef2","tarball":"https://registry.npmjs.org/a-builder/-/a-builder-0.0.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICRpHWn/owhmveGYO+Y4NAfFwXnrY3wFKB6BQzLgzl8OAiAWNCOW6eWcCFj5yaMPFWfbJ+xfUfD2ty7M0rpRQQralA=="}]},"maintainers":[{"name":"watashi","email":"matthhar12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/a-builder-0.0.1.tgz_1502741822290_0.5777238733135164"}},"0.0.2":{"name":"a-builder","version":"0.0.2","description":"a-builder","license":"MIT","repository":"","author":{"name":"Matthew Harwood","email":"matthhar12@gmail.com"},"keywords":[],"files":["lib"],"main":"lib/src/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":{"fs-extra":"^4.0.1","lodash":"^4.17.4"},"devDependencies":{"@types/fs-extra":"^4.0.0","@types/lodash":"^4.14.72","@types/jest":"^20.0.6","@types/node":"^8.0.20","coveralls":"^2.13.1","jest":"^20.0.4","jest-environment-node-debug":"^2.0.0","prettier":"^1.5.3","rimraf":"^2.6.1","ts-jest":"^20.0.10","ts-node":"^3.2.0","tslint":"~5.3.2","tslint-config-prettier":"^1.3.0","typescript":"^2.4.2"},"engines":{"node":">=6.0.0"},"jest":{"transform":{".(ts|tsx)":"<rootDir>/node_modules/ts-jest/preprocessor.js"},"testMatch":["**/?(*.)(spec|test).ts?(x)"],"moduleFileExtensions":["ts","tsx","js"]},"_id":"a-builder@0.0.2","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"watashi","email":"matthhar12@gmail.com"},"dist":{"integrity":"sha512-Pr6RxD0Ahfu2wyBDzGsmcENJZaTt6pu+XGXDSw/lCLSSWoBlXqlZGiFmCr4QhLP6QhFkkQUeqYllJg1R1pPryA==","shasum":"7ed4e149d1b0b3c099031b11de389e241b2ce8f1","tarball":"https://registry.npmjs.org/a-builder/-/a-builder-0.0.2.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB+evyIpvvlgfWFF5EOkH5osPs45kXBiAweo3JFoZ/yoAiEAhsGSYHBLp38dMS7qLdOeTy6uzWZivtFNjphJn0DpczQ="}]},"maintainers":[{"name":"watashi","email":"matthhar12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/a-builder-0.0.2.tgz_1502755300138_0.48030624887906015"}},"0.0.3":{"name":"a-builder","version":"0.0.3","description":"a-builder","license":"MIT","repository":"","author":{"name":"Matthew Harwood","email":"matthhar12@gmail.com"},"keywords":[],"files":["lib"],"main":"lib/src/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":{"fs-extra":"^4.0.1","lodash":"^4.17.4"},"devDependencies":{"@types/fs-extra":"^4.0.0","@types/lodash":"^4.14.72","@types/jest":"^20.0.6","@types/node":"^8.0.20","coveralls":"^2.13.1","jest":"^20.0.4","jest-environment-node-debug":"^2.0.0","prettier":"^1.5.3","rimraf":"^2.6.1","ts-jest":"^20.0.10","ts-node":"^3.2.0","tslint":"~5.3.2","tslint-config-prettier":"^1.3.0","typescript":"^2.4.2"},"engines":{"node":">=6.0.0"},"jest":{"transform":{".(ts|tsx)":"<rootDir>/node_modules/ts-jest/preprocessor.js"},"testMatch":["**/?(*.)(spec|test).ts?(x)"],"moduleFileExtensions":["ts","tsx","js"]},"_id":"a-builder@0.0.3","_npmVersion":"5.3.0","_nodeVersion":"8.2.1","_npmUser":{"name":"watashi","email":"matthhar12@gmail.com"},"dist":{"integrity":"sha512-CDAkloj1k3WPzY/f2JBdMbtsHTENLD5bZ+1Uj1Egh9xgPxzrRzoKo/Ho1MNdzphYpq08E5Zvyf7UJ715oCeYHw==","shasum":"41e7012354a7601a882fe2d54b84c4b7982c8cc8","tarball":"https://registry.npmjs.org/a-builder/-/a-builder-0.0.3.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDLFkR0Kn/3UQFmVek0Qot7xLm2YmR8EjVhpr0N+tMARgIhANAbz/XOv5rUwJkhZyysD2cvrJnUfgsg8nyQQyUmnoLw"}]},"maintainers":[{"name":"watashi","email":"matthhar12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/a-builder-0.0.3.tgz_1502858812349_0.3443350805900991"}}},"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-11T12:17:30.879Z","created":"2017-08-14T20:17:03.461Z","0.0.1":"2017-08-14T20:17:03.461Z","0.0.2":"2017-08-15T00:01:40.247Z","0.0.3":"2017-08-16T04:46:52.486Z"},"keywords":[],"author":{"name":"Matthew Harwood","email":"matthhar12@gmail.com"},"license":"MIT","readmeFilename":"README.md"}