Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
@binary-com/smartcharts
Advanced tools
Binary.com charting library using chartiq.
yarn install
to install dependenciesyarn start
to launch webpack dev serveryarn build
to build the projectyarn analyze
to run webpack-bundle-analyzerimport {
SmartChart,
Barrier,
TradeStartLine,
TradeEndLine
} from 'smartcharts';
class App extends React.Component {
render() {
return (
<SmartChart>
<Barrier
color='green'
shade='above'
onBarrierChange={console.warn.bind(console)}
/>
<TradeEndLine followsCurrentQuote />
<TradeStartLine quote={(new Date).getTime() | 0} />
</SmartChart>
);
}
};
All strings that need to be translated must be inside t.translate()
:
t.translate('[currency] [amount] payout if the last tick.', {
currency: 'USD',
amount: 43.12
});
t.setLanguage('fr'); // components need to be rerendered for changes to take affect
Each time a new translation string is added to the code, you need to update the messages.pot
via:
yarn translations
Once the new messages.pot
is merged into the dev
branch, it will automatically be updated in CrowdIn. You should expect to see a PR with the title New Crowdin translations
in a few minutes; this PR will update the *.po
files.
To contribute to SmartCharts, fork this project and checkout the dev
branch. When adding features or performing bug fixes, it is recommended you make a separate branch off dev
. Prior to sending pull requests, make sure all unit tests passed:
yarn test
Note: When you send pull requests, remember to set the base branch to
dev
.
Once your changes have been merged to dev
, it will immediately deployed to charts.binary.com/beta.
Note: This is usually not required, since Travis will automatically deploy to charts.binary.com and charts.binary.com/beta when
master
anddev
is updated.
The following commands will build and deploy to charts.binary.com (Make sure you are in the right branch!); you will need push access to this repository for the commands to work:
yarn deploy:beta # charts.binary.com/beta
yarn deploy:production # charts.binary.com
<Barrier
color?='red|green'
shade?='above|below|between|outside|single_none|double_none'
high?={number}
low?={number}
relative?={boolean}
draggable?={boolean}
onBarrierChange?={({high,low}) => any}
/>
<TradeStartLine
followsCurrentQuote?={boolean}
quote={number}
/>
FAQs
[![npm (scoped)](https://img.shields.io/npm/v/@binary-com/smartcharts.svg)](https://www.npmjs.com/package/@binary-com/smartcharts) [![Build Status](https://travis-ci.org/binary-com/SmartCharts.svg?branch=dev)](https://travis-ci.org/binary-com/SmartCharts)
The npm package @binary-com/smartcharts receives a total of 41 weekly downloads. As such, @binary-com/smartcharts popularity was classified as not popular.
We found that @binary-com/smartcharts demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 8 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.