stringy.io

0.0.39 • Public • Published

WARNING - THIS PACKAGE IS UNDER DEVELOPMENT AND IS NOT CURRENTLY USEFUL TO ANYONE EXCEPT THE DEVELOPERS

Stringy CLI

Command line tools for Stringy.io, the internationalisation tool for developers.

Installation

Install the node npm package globally to have access to the shell command stringy

npm install stringy.io -g

If you don't have an account yet you will need to set one up at https://stringy.io

Setup

You need to have a stringy.json file in the root of your project. Something like the one below

Example stringy.json
{
  "name":"my project name",
  "version":"0.0.1",
  "projectUrl":"https://stringy.com/company/project",
  "patterns":"objc",
  "inputDirs":[
    "ShiftMarket"
  ],
  "excludeDirs":[
    "Vendor",
    "Build",
    "Assets",
    "Pods"
  ],
    "includedFileExtensions":[
    "m"
  ],
  "excludedFileExtensions":[
    "h",
    "strings",
    "plist"
  ]
}

name (string)

The name attribute is purely optional

projectUrl

The projectUrl attribute is purely optional

patterns (string)

The patterns attribute is required and is used to specify which particular regex patterns will be used to parse your project. This value represents the name of a corresponding file in the patterns folder. e.g. objc will load the contents of patterns/objc.js as the regex patterns to parse the project with. If you wish to add a new pattern file, please let us know.

inputDirs (array)

The inputDirs attribute is required and is used to specify what particular folders will be parsed.

excludeDirs (array)

Is optional and is used to specify what particular folders will NOT be parsed.

includedFileExtensions (array)

Is optional and is used to specify which particular file extensions will be parsed.

excludedFileExtensions (array)

Is optional and is used to specify which particular file extensions will NOT be parsed.

Commands

find

Find strings in your project. Optionally pass -v for verbose logging

$ stringy find -v

ssh -nT -L 9891:stg.api.stringy.io:80 brendon@stringy.io sleep 60

curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"jsonrpc":"2.0","id":1,"method":"Auth.User.login","params":{"username":"brenwell","password":"e4218a7dc817ad8120ae11ca5156cc0fd9feeef8c11d517d745e1dcf8b54a3f9"}}' http://127.0.0.1:9891

curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"jsonrpc":"2.0","id":1,"method":"Auth.User.login","params":{"username":"brenwell","password":"e4218a7dc817ad8120ae11ca5156cc0fd9feeef8c11d517d745e1dcf8b54a3f9"}}' --proxy http://127.0.0.1:8888 http://127.0.0.1:9891 Host: http://stg.api.stringy.io

curl --socks5 127.0.0.1:9891 http://stg.api.stringy.io

Readme

Keywords

none

Package Sidebar

Install

npm i stringy.io

Weekly Downloads

23

Version

0.0.39

License

Proprietary

Last publish

Collaborators

  • brenwell