[React-Native]오픈소스 라이센스 고지하기

승환·2024년 1월 30일
0

React-Native

목록 보기
4/10

Install

npm i -g react-native-oss-license

Usage

  • 프로젝트 루트 terminal에서
    react-native-oss-license --json --only-direct-dependency --skip-not-required 를 입력하여 나오는 string 배열을 복사하여 사용하자
  • 입력후 다음과같은 형태가 나오는데 저장하여 원하고자 하는 사용값만 리스트로 보여주면 된다.
export const OpenSourceLicense = [
  {
    libraryName: '@eabdullazyanov/react-native-sms-user-consent',
    version: '1.0.10',
    _license: 'MIT',
    _description:
      "React Native wrapper for Android's SMS User Consent API, ready to use in React Native apps with minimum effort",
    homepage: '<https://github.com/akvelon/react-native-sms-user-consent#readme>',
    author: {
      name: 'Eldar Abdullazyanov',
      email: 'eldar.abdullazyanov@akvelon.com',
    },
    repository: {
      type: 'git',
      url: 'git+https://github.com/akvelon/react-native-sms-user-consent.git',
      baseUrl: '<https://github.com/akvelon/react-native-sms-user-consent>',
    },
    _licenseContent:
      'MIT License\\n\\nCopyright (c) 2021 Akvelon\\n\\nPermission is hereby granted, free of charge, to any person obtaining a copy\\nof this software and associated documentation files (the "Software"), to deal\\nin the Software without restriction, including without limitation the rights\\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\\ncopies of the Software, and to permit persons to whom the Software is\\nfurnished to do so, subject to the following conditions:\\n\\nThe above copyright notice and this permission notice shall be included in all\\ncopies or substantial portions of the Software.\\n\\nTHE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\\nSOFTWARE.\\n',
  },
  ...
  ...
   }
  ]
profile
반갑습니다~

0개의 댓글