npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

subcinode

v1.1.3

Published

Your subs, now.

Downloads

6

Readme

subcinode

Your subs, now from your console.

Subcino(de) is a npm package to automatically download the correct subtitles for your video files. It is the node version of Subcino.

It is completely free, and does not require registration. Basically, it is a legit wrapper for Open Subtitles APIs.

Installation

Install with NPM:

npm install subcinode --global

Documentation

subcinode -useSubs -langs=<String> -recursive=<Boolean> -extensions=<String> -path=<String> -save -debug

| Options | Type | Default | Description | |---|---|---|---| | langs | String | 'all' | Comma-separated value to specify the langs to download. Default is 'all'. See below for valid values for languages. | recursive | Boolean | true | If true, navigates through all folders under the current one. | | useSubs | Boolean | false | If true, subtitles are saved under a 'subs/' folder. Otherwise, they are same in the same folder as the video file. | | extensions | String | 'mp4,mkv,avi' | Comma-separated value of the extensions to search for. | | path | String | Current shell directory | If specified, looks for video files under that path. | | save | String | | If -save is specified, the current settings will be saved as default. | | debug | String | | If -debug is specified, more information is given in the console. | | settings | String | | If -settings is specified, subcino shows the current settings ( and terminates ). |

Valid languages

| Language | Value | |------------- |--------------| | English | eng | | Italiano | ita | | French | fre | | German | ger | | Spanish | spa | | Arabic | ara | | Afrikaans | afr | | Albanian | alb | | Armenian | arm | | Basque | baq | | Belarusian | bel | | Bengali | ben | | Bosnian | bos | | Breton | bre | | Bulgarian | bul | | Burmese | bur | | Catalan | cat | | Chinese (simplified) | chi | | Croatian | hr | | Czech | cze | | Danish | dan | | Dutch | dut | | Esperanto | epo | | Estonian | est | | Finnish | fin | | Galician | glg | | Georgian | geo | | Greek | ell | | Hebrew | heb | | Hindi | hin | | Hungarian | hun | | Icelandic | ice | | Indonesian | ind | | Japanese | jpn | | Kazakh | kaz | | Khmer | khm | | Korean | kor | | Latvian | lav | | Lithuanian | lit | | Luxembourgish | ltz | | Macedonian | mac | | Malay | may | | Malayalam | mal | | Mongolian | mon | | Norwegian | nor | | Occitan | oci | | Persian | per | | Polish | pol | | Portuguese | por | | Portuguese (BR) | pob | | Romanian | rum | | Russian | rus | | Serbian | scc | | Sinhalese | sin | | Slovak | slo | | Slovenian | slv | | Swahili | swa | | Swedish | swe | | Syriac | syr | | Tamil | tam | | Telugu | tel | | Thai | tha | | Turkish | tur | | Ukrainian | ukr | | Urdu | urd | | Vietnamese | vie |

Usage Examples

Search all subtitles with the default settings.

subcinode

Search all English and Italian subtitles for any MP4 or AVI video file in the User Downloads folder, not recursively.

subcinode -langs=eng,ita -recursive=false -extensions=mp4,avi -path="/Users/my.user/Downloads"

Search with specific settings and save them as default

subcinode -save -langs=eng,ita -recursive=false -extensions=mp4

So, from that moment on, it is possible to write

subcinode

to perform the search with the default saved settings.

Show the current settings ( and terminate the program )

subcinode -settings

Changelog

Version 1.1.3

  • Fixed dependency problems

Version 1.1.2

  • Fixed endsWith problem for some users

Version 1.1.1

  • Removed unnecessary files

Version 1.1.0

  • Added subtitle parsing
  • Added -settings parameter

Version 1.0.1

  • Minor documentation fixes.

Version 1.0.0

  • Major version bump
  • Fixed -langs settings bug
  • Added possibility to set default settings.

Version 0.0.7

  • Renamed package as subcinode.

Version 0.0.6

  • Major refactoring.

Version 0.0.5

  • Added license, documentation, readme, changelog and authors.
  • Fixed multiple bugs.

Version 0.0.4

  • Minor fixes to allow npm package installed globally.

Version 0.0.3

  • Implemented complete workflow

Version 0.0.2

  • Added directory tree navigation

Version 0.0.1

  • Preliminary tests with nodeJS and npm

License

The MIT License (MIT)

Copyright (c) 2015 Alessandro Piana

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.