{"action":"created","issue":{"url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/819","labels_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/819/labels{/name}","comments_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/819/comments","events_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/819/events","html_url":"https://github.com/mishoo/UglifyJS2/issues/819","id":110053931,"number":819,"title":"Can I pass JavaScript source code from command line?","user":{"login":"nviror","id":1423756,"avatar_url":"https://avatars.githubusercontent.com/u/1423756?v=3","gravatar_id":"","url":"https://api.github.com/users/nviror","html_url":"https://github.com/nviror","followers_url":"https://api.github.com/users/nviror/followers","following_url":"https://api.github.com/users/nviror/following{/other_user}","gists_url":"https://api.github.com/users/nviror/gists{/gist_id}","starred_url":"https://api.github.com/users/nviror/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nviror/subscriptions","organizations_url":"https://api.github.com/users/nviror/orgs","repos_url":"https://api.github.com/users/nviror/repos","events_url":"https://api.github.com/users/nviror/events{/privacy}","received_events_url":"https://api.github.com/users/nviror/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-06T17:01:46Z","updated_at":"2015-10-07T13:26:21Z","closed_at":"2015-10-07T13:26:21Z","body":"My use case doesn't have the JavaScript stored in files but as a variable in string.\r\n\r\nCan I do something like:\r\nuglifyjs --compress --mangle -- `var hello = \"world;\"`"},"comment":{"url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/comments/146195893","html_url":"https://github.com/mishoo/UglifyJS2/issues/819#issuecomment-146195893","issue_url":"https://api.github.com/repos/mishoo/UglifyJS2/issues/819","id":146195893,"user":{"login":"rvanvelzen","id":102603,"avatar_url":"https://avatars.githubusercontent.com/u/102603?v=3","gravatar_id":"","url":"https://api.github.com/users/rvanvelzen","html_url":"https://github.com/rvanvelzen","followers_url":"https://api.github.com/users/rvanvelzen/followers","following_url":"https://api.github.com/users/rvanvelzen/following{/other_user}","gists_url":"https://api.github.com/users/rvanvelzen/gists{/gist_id}","starred_url":"https://api.github.com/users/rvanvelzen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rvanvelzen/subscriptions","organizations_url":"https://api.github.com/users/rvanvelzen/orgs","repos_url":"https://api.github.com/users/rvanvelzen/repos","events_url":"https://api.github.com/users/rvanvelzen/events{/privacy}","received_events_url":"https://api.github.com/users/rvanvelzen/received_events","type":"User","site_admin":false},"created_at":"2015-10-07T13:26:21Z","updated_at":"2015-10-07T13:26:21Z","body":"When no files are specified (or `-` is used), we read from STDIN. The correct way to execute the example given:\r\n\r\n```bash\r\necho 'var hello = \"world;\"' | uglifyjs --compress --mangle\r\n```"}}