1.0.12 • Published 5 years ago
react-quick-legal v1.0.12
Demo
Quick Start
import React from "react";
import { PrivacyPolicy, TermsOfService, MITLicense } from "react-quick-legal";
const App: React.FC = () => {
const companyName = "Example.com";
const privacyPolicyLink = "http://www.example.com/privacypolicy";
return (
<div>
<h1>Privacy Policy</h1>
<PrivacyPolicy
companyName={companyName}
privacyPolicyLink={privacyPolicyLink}
/>
<h1>Terms of Service</h1>
<div style={{ fontFamily: "monospace" }}>
<TermsOfService
companyName={companyName}
privacyPolicyLink={privacyPolicyLink}
/>
</div>
<h1>MIT License</h1>
<MITLicense copyrightHolder="Example.com" />
</div>
);
};
Overview
TBD - Coming soon!
Installation
npm i react-quick-legal
Usage
TBD - Usage and examples coming soon!
import React from "react";
import { PrivacyPolicy, TermsOfService } from "react-quick-legal";
const App: React.FC = () => {
const companyName = "Example.com";
const privacyPolicyLink = "http://www.example.com/privacypolicy";
return (
<div>
<h1>Privacy Policy</h1>
<PrivacyPolicy
companyName={companyName}
privacyPolicyLink={privacyPolicyLink}
/>
<h1>Terms of Service</h1>
<div style={{ fontFamily: "monospace" }}>
<TermsOfService
companyName={companyName}
privacyPolicyLink={privacyPolicyLink}
/>
</div>
</div>
);
};
Legal Disclaimer
The accuracy of the generated document using this project is not legally binding. Use at your own risk.
These sample templates are not legal advice and by using them you agree to this disclaimer. These materials
are for informational purposes only and do not constitute advertising, a solicitation or legal advice. You
should consult independent legal advice before publishing these agreements. You should read the generated
information with care and modify, delete or add all and any areas as necessary. Use of, access to or
transmission of such materials and information or any of the links contained herein is not intended to
create, and receipt thereof does not constitute formation of, an attorney-client relationship between the
project maintainers and the user or browser. You should not rely upon this information for any purpose
without seeking legal advice from a licensed attorney in your state or province. The information contained
is provided only as general information and may or may not reflect the most current legal developments;
accordingly, information is not promised or guaranteed to be correct or complete. The project maintainers
expressly disclaim all liability in respect to any actions taken or not taken based on any or all of the
contents of this project. Further, the maintainers do not necessarily endorse and are not responsible for
any third-party content that may be accessed through this information.
Development Scripts
npm run deploy
Single command to build, commit, push the project to GitHub, and publish to npm as a version patch.
Uses -m "Build and deploy."
as the commit message for both git
and npm
.
npm run updoc
Adds/commits README.md
and pushes to GitHub with commit message -m "Update README."
npm run build
Deletes dist
and rebuilds it using tsc
.
npm run watch
Watches for changes, recompiles with tsc
.
npm run test
Runs tests.
npm run coverage
Reports code coverage.
npm run example
Runs the examples shown in the README.
npm run boilerplate-install
Installs the boilerplate dev dependencies for this TypeScript project.
Attributions
Logo Font
Righteous SIL Open Font License, 1.1
Righteous-Regular.ttf: Copyright (c) 2011 by Brian J. Bonislawsky DBA Astigmatic (AOETI) (astigma@astigmatic.com), with Reserved Font Name "Righteous"
MIT License
This project is covered under the MIT License.
Copyright © 2019 Justin Mahar
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.