How fast do you want to be to transform an idea into code?
This is not a package that will force you to remember of some custom prefix to call the the snippets. Treedbox Atom Javascript was designed to serve snippets in the most logical way, delivering the most commons code structures and combinations to make your combo code very speedy and powerful.
Javascript snippets Atom Package for a fast development.
By: Jonimar Marques Policarpo at Treedbox
GitHub: https://github.com/treedbox/treedbox-atom-javascript
Atom.io: https://atom.io/packages/treedbox-atom-javascript
version 2.7.0: 501 javascript snippets!
fetchGET
, fetchPOST
, fetchPUT
, fetchDELETE
;URLcreateObjectURL
, URLrevokeObjectURL
;parseInt
.version 2.3.0: 480 snippets
version 1.0.0: 114 snippets
Including an extra complete functions as MathRandomCompleteFunc
or randomCompleteFunc
:
const random = (min,max) => Math.floor(Math.random() * (max - min + 1)) + min
and many others Extras that you will find out when you need it :)
in a .js
file or in a .html
file, between the HTML tag <script></script>
,
type: fetch
and press "Tab/Enter" to generate:
fetch(url)
.then(response => response)
.then(data =>{
console.log('data:',data)
}).catch(error => console.log('ERROR:',error.message))
Like fetch
, you have a lot of snippets to help you with import
, forEach
, map
, generator
and so on.
Atom 1.21.0-beta2 x64
Atom 1.22.0-beta2 x64
Author: Jonimar Marques Policarpo [Front-End Web Developer]
LinkEdin: Jonimar Marques Policarpo | Treedbox
Twitter: @treedbox
E-mail: treedbox@gmail.com
WebSite: treedbox.com
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.