This gist is updated daily via cron job and lists stats for npm packages:
- Top 1,000 most depended-upon packages
- Top 1,000 packages with largest number of dependencies
- Top 1,000 packages with highest PageRank score
| { | |
| "presets": [ "react", "es2015" ], | |
| "plugins": [ | |
| "transform-es2015-modules-commonjs", | |
| "transform-react-constant-elements", | |
| ] | |
| } |
| # SETUP: install documentation.js: | |
| npm i -g documentation browser-pipe | |
| # SETUP: install gist cli (github.com/defunkt/gist) | |
| brew install gist | |
| # generate docs, upload to gist.github.com, then pipe the Gist URL to Documentation Viewer in your browser: | |
| documentation src | gist -p -f docs.json | awk '{print "https://documentation-viewer.firebaseapp.com/#"$1}' | browser-pipe |
This is a first crack at generated docs for Preact.
Base Component class, for he ES6 Class method of creating Components
| // series/sequence | |
| let [a, b] = [await one(), await two()]; | |
| // parallel | |
| let [a, b] = await* [one(), two()]; |
npm users sorted by the monthly downloads of their modules, for the range May 6, 2018 until Jun 6, 2018.
Metrics are calculated using top-npm-users.
| # | User | Downloads |
|---|
| // mixins with createClass: | |
| const Foo = createClass({ | |
| ...someMixin, | |
| render: ({ onClick, children }) => ( | |
| <div class="foo"> | |
| <button onClick={onClick}>Click Me</button> | |
| { children } | |
| </div> | |
| ) |