├── .editorconfig
├── .eslintrc
├── .gitattributes
├── .github
└── workflows
│ └── codeql-analysis.yml
├── .gitignore
├── .tachikoma.yml
├── .travis.yml
├── appveyor.yml
├── changelog.md
├── cli.js
├── example
└── package.json
├── license
├── package.json
└── readme.md
/.editorconfig:
--------------------------------------------------------------------------------
1 | root = true
2 |
3 | [*]
4 | indent_style = space
5 | indent_size = 2
6 | end_of_line = lf
7 | charset = utf-8
8 | trim_trailing_whitespace = true
9 | insert_final_newline = true
10 |
11 | [*.md]
12 | trim_trailing_whitespace = false
13 |
--------------------------------------------------------------------------------
/.eslintrc:
--------------------------------------------------------------------------------
1 | {
2 | "root": true,
3 | "rules": {
4 | "indent": [
5 | 2,
6 | 2
7 | ],
8 | "quotes": [
9 | 2,
10 | "single"
11 | ],
12 | "linebreak-style": [
13 | 2,
14 | "unix"
15 | ],
16 | "semi": [
17 | 2,
18 | "always"
19 | ]
20 | },
21 | "env": {
22 | "node": true,
23 | "mocha": true,
24 | "es6": true
25 | },
26 | "extends": "eslint:recommended"
27 | }
28 |
--------------------------------------------------------------------------------
/.gitattributes:
--------------------------------------------------------------------------------
1 | * text=auto
2 |
--------------------------------------------------------------------------------
/.github/workflows/codeql-analysis.yml:
--------------------------------------------------------------------------------
1 | # For most projects, this workflow file will not need changing; you simply need
2 | # to commit it to your repository.
3 | #
4 | # You may wish to alter this file to override the set of languages analyzed,
5 | # or to provide custom queries or build logic.
6 | name: "CodeQL"
7 |
8 | on:
9 | push:
10 | branches: [master]
11 | pull_request:
12 | # The branches below must be a subset of the branches above
13 | branches: [master]
14 | schedule:
15 | - cron: '0 13 * * 5'
16 |
17 | jobs:
18 | analyze:
19 | name: Analyze
20 | runs-on: ubuntu-latest
21 |
22 | strategy:
23 | fail-fast: false
24 | matrix:
25 | # Override automatic language detection by changing the below list
26 | # Supported options are ['csharp', 'cpp', 'go', 'java', 'javascript', 'python']
27 | language: ['javascript']
28 | # Learn more...
29 | # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
30 |
31 | steps:
32 | - name: Checkout repository
33 | uses: actions/checkout@v2
34 | with:
35 | # We must fetch at least the immediate parents so that if this is
36 | # a pull request then we can checkout the head.
37 | fetch-depth: 2
38 |
39 | # If this run was triggered by a pull request event, then checkout
40 | # the head of the pull request instead of the merge commit.
41 | - run: git checkout HEAD^2
42 | if: ${{ github.event_name == 'pull_request' }}
43 |
44 | # Initializes the CodeQL tools for scanning.
45 | - name: Initialize CodeQL
46 | uses: github/codeql-action/init@v1
47 | with:
48 | languages: ${{ matrix.language }}
49 | # If you wish to specify custom queries, you can do so here or in a config file.
50 | # By default, queries listed here will override any specified in a config file.
51 | # Prefix the list here with "+" to use these queries and those in the config file.
52 | # queries: ./path/to/local/query, your-org/your-repo/queries@main
53 |
54 | # Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
55 | # If this step fails, then you should remove it and run the build manually (see below)
56 | - name: Autobuild
57 | uses: github/codeql-action/autobuild@v1
58 |
59 | # ℹ️ Command-line programs to run using the OS shell.
60 | # 📚 https://git.io/JvXDl
61 |
62 | # ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
63 | # and modify them (or add more) to build your code if your project
64 | # uses a compiled language
65 |
66 | #- run: |
67 | # make bootstrap
68 | # make release
69 |
70 | - name: Perform CodeQL Analysis
71 | uses: github/codeql-action/analyze@v1
72 |
--------------------------------------------------------------------------------
/.gitignore:
--------------------------------------------------------------------------------
1 | node_modules
2 | .DS_Store
3 | npm-debug.log
4 | example/node_modules
5 | package-lock.json
6 |
--------------------------------------------------------------------------------
/.tachikoma.yml:
--------------------------------------------------------------------------------
1 | # Dependency Update as a Service
2 | # http://tachikoma.io/configuration.html
3 | strategy: 'david'
4 |
--------------------------------------------------------------------------------
/.travis.yml:
--------------------------------------------------------------------------------
1 | # https://travis-ci.org/
2 | language: node_js
3 | node_js:
4 | - "12"
5 | - "14"
6 | - "15"
7 | - "node"
8 | script: "npm run verify"
9 |
--------------------------------------------------------------------------------
/appveyor.yml:
--------------------------------------------------------------------------------
1 | # http://www.appveyor.com/docs/appveyor-yml
2 |
3 | # init
4 | clone_depth: 20
5 |
6 | # install
7 | install:
8 | - node --version
9 | - npm --version
10 | - npm install
11 |
12 | # build
13 | build: off
14 |
15 | # test
16 | test_script:
17 | - npm run verify
18 |
19 | # deploy
20 | deploy: off
21 |
22 | # notify
23 | notifications:
24 | - provider: Email
25 | to:
26 | - o.gata.ken@gmail.com
27 | on_build_status_changed: true
28 |
--------------------------------------------------------------------------------
/changelog.md:
--------------------------------------------------------------------------------
1 | ## [2.0.1](https://github.com/pandawing/node-chrome-web-store-item-property-cli/compare/v2.0.0...v2.0.1) (2019-11-08)
2 |
3 | * Update dependencies
4 |
5 |
6 | # [2.0.0](https://github.com/pandawing/node-chrome-web-store-item-property-cli/compare/v1.0.4...v2.0.0) (2016-04-03)
7 |
8 |
9 | ### Features
10 |
11 | * **cli:** drop command with suffix -cli ([478222c](https://github.com/pandawing/node-chrome-web-store-item-property-cli/commit/478222c))
12 |
13 |
14 | ### BREAKING CHANGES
15 |
16 | * Use `chrome-web-store-item-property` instead of `chrome-web-store-item-property-cli`.
17 |
18 |
19 |
20 |
21 | ## [1.0.4](https://github.com/pandawing/node-chrome-web-store-item-property-cli/compare/v1.0.3...v1.0.4) (2016-04-03)
22 |
23 | * Update deps
24 |
25 |
26 |
27 | ## 1.0.3 (2016-03-08)
28 |
29 | * `chrome-web-store-item-property`, `chrome-web-store-item-property-cli`, both are cli command.
30 |
31 |
32 |
33 | ## 1.0.2 (2015-08-08)
34 |
35 | * Update dependency of `chrome-web-store-item-property`
36 |
37 |
38 |
39 | ## 1.0.1 (2015-08-07)
40 |
41 | * Update dependency of `chrome-web-store-item-property`
42 |
43 |
44 |
45 | # 1.0.0 (2015-08-07)
46 |
47 | * Ship `chrome-web-store-item-property-cli`!
48 |
49 | ### Features
50 |
51 | * **cli:** implementation ([0f48ecd](https://github.com/pandawing/node-chrome-web-store-item-property-cli/commit/0f48ecd))
52 |
53 |
54 |
55 |
--------------------------------------------------------------------------------
/cli.js:
--------------------------------------------------------------------------------
1 | #!/usr/bin/env node
2 | /*eslint no-console:0*/
3 | 'use strict';
4 | var meow = require('meow');
5 | var chromeWebStoreItemProperty = require('chrome-web-store-item-property');
6 |
7 | var cli = meow({
8 | help: `
9 | Usage
10 | $ chrome-web-store-item-property [identifier]
11 |
12 | Examples
13 | $ chrome-web-store-item-property nimelepbpejjlbmoobocpfnjhihnpked | jq .
14 | {
15 | "name": "Do Not Merge WIP for GitHub",
16 | "url": "https://chrome.google.com/webstore/detail/do-not-merge-wip-for-gith/nimelepbpejjlbmoobocpfnjhihnpked",
17 | "image": "https://ssl.gstatic.com/chrome/webstore/images/thumb.png",
18 | "version": "1.0.6",
19 | "price": "$0",
20 | "priceCurrency": "USD",
21 | "interactionCount": {
22 | "UserDownloads": 421
23 | },
24 | "operatingSystems": "Chrome",
25 | "ratingValue": 4.5,
26 | "ratingCount": 2,
27 | "id": "nimelepbpejjlbmoobocpfnjhihnpked"
28 | }
29 | `
30 | });
31 |
32 | if (cli.input.length < 1) {
33 | console.error('Identifier for Chrome Web Store is required');
34 | process.exit(1);
35 | }
36 |
37 | chromeWebStoreItemProperty(cli.input[0])
38 | .then(function (value) {
39 | console.log(JSON.stringify(value));
40 | }).catch(function (err) {
41 | console.error(err.message);
42 | process.exit(1);
43 | });
44 |
--------------------------------------------------------------------------------
/example/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "devDependencies": {
3 | "chrome-web-store-item-property-cli": "../"
4 | }
5 | }
6 |
--------------------------------------------------------------------------------
/license:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) sanemat (sane.jp)
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "chrome-web-store-item-property-cli",
3 | "description": "Gather meta information from chrome web store",
4 | "version": "2.0.1",
5 | "author": {
6 | "name": "sanemat",
7 | "email": "o.gata.ken@gmail.com",
8 | "url": "sane.jp"
9 | },
10 | "bin": {
11 | "chrome-web-store-item-property": "cli.js"
12 | },
13 | "dependencies": {
14 | "chrome-web-store-item-property": "^1.1.0",
15 | "meow": "^5.0.0"
16 | },
17 | "devDependencies": {
18 | "conventional-changelog-cli": "^2.0.25",
19 | "eclint": "^2.8.1",
20 | "eslint": "^6.6.0",
21 | "globstar": "^1.0.0",
22 | "npm-check-updates": "^3.2.1"
23 | },
24 | "engines": {
25 | "node": ">= 10"
26 | },
27 | "files": [
28 | "cli.js"
29 | ],
30 | "keywords": [
31 | "api",
32 | "chrome",
33 | "chrome-app",
34 | "chrome-extension",
35 | "chrome-theme",
36 | "chrome-web-store",
37 | "cli",
38 | "cli-app",
39 | "itemprop",
40 | "meta",
41 | "web-store",
42 | "webstore"
43 | ],
44 | "license": "MIT",
45 | "repository": "pandawing/node-chrome-web-store-item-property-cli",
46 | "scripts": {
47 | "changelog": "conventional-changelog --infile changelog.md --same-file --preset angular",
48 | "eclint": "globstar --ignore \"node_modules/**\" -- eclint check \"*.{js,yml,md,json}\"",
49 | "eslint": "eslint .",
50 | "git:tag": "git tag v${npm_package_version}",
51 | "lint": "npm run eclint && npm run eslint",
52 | "ncu": "ncu -u",
53 | "verify": "npm run lint"
54 | }
55 | }
56 |
--------------------------------------------------------------------------------
/readme.md:
--------------------------------------------------------------------------------
1 | # chrome-web-store-item-property-cli
2 |
3 | [![NPM version][npm-image]][npm-url] [![Travis-CI Status][travis-image]][travis-url] [![Appveyor Status][appveyor-image]][appveyor-url] [![Daviddm Status][daviddm-image]][daviddm-url]
4 |
5 | > Gather meta information from chrome web store
6 |
7 | See [chrome-web-store-item-property](https://github.com/pandawing/node-chrome-web-store-item-property) for the programmatic API and issue tracker.
8 |
9 | ## Install
10 |
11 | ```
12 | $ npm install --global chrome-web-store-item-property-cli
13 | ```
14 |
15 |
16 | ## CLI
17 |
18 | ```
19 | $ chrome-web-store-item-property --help
20 |
21 | Usage
22 | $ chrome-web-store-item-property [identifier]
23 |
24 | Examples
25 | $ chrome-web-store-item-property nimelepbpejjlbmoobocpfnjhihnpked | jq .
26 | {
27 | "name": "Do Not Merge WIP for GitHub",
28 | "url": "https://chrome.google.com/webstore/detail/do-not-merge-wip-for-gith/nimelepbpejjlbmoobocpfnjhihnpked",
29 | "image": "https://ssl.gstatic.com/chrome/webstore/images/thumb.png",
30 | "version": "1.0.6",
31 | "price": "$0",
32 | "priceCurrency": "USD",
33 | "interactionCount": {
34 | "UserDownloads": 421
35 | },
36 | "operatingSystems": "Chrome",
37 | "ratingValue": 4.5,
38 | "ratingCount": 2,
39 | "id": "nimelepbpejjlbmoobocpfnjhihnpked"
40 | }
41 | ```
42 |
43 |
44 | ## Changelog
45 |
46 | [changelog.md](./changelog.md).
47 |
48 |
49 | ## License
50 |
51 | MIT © [sanemat](http://sane.jp)
52 |
53 |
54 | [travis-url]: https://travis-ci.org/pandawing/node-chrome-web-store-item-property-cli
55 | [travis-image]: https://img.shields.io/travis/pandawing/node-chrome-web-store-item-property-cli/master.svg?style=flat-square&label=travis
56 | [appveyor-url]: https://ci.appveyor.com/project/sanemat/node-chrome-web-store-item-property-cli/branch/master
57 | [appveyor-image]: https://img.shields.io/appveyor/ci/sanemat/node-chrome-web-store-item-property-cli/master.svg?style=flat-square&label=appveyor
58 | [npm-url]: https://npmjs.org/package/chrome-web-store-item-property-cli
59 | [npm-image]: https://img.shields.io/npm/v/chrome-web-store-item-property-cli.svg?style=flat-square
60 | [daviddm-url]: https://david-dm.org/pandawing/node-chrome-web-store-item-property-cli
61 | [daviddm-image]: https://img.shields.io/david/pandawing/node-chrome-web-store-item-property-cli.svg?style=flat-square
62 |
--------------------------------------------------------------------------------