share-snippets
A collection of code snippets that are commonly used and found on the web.
Use Js
new js file.
// util.js
import truncate from 'share-snippets/js/string/truncate'
import queryParse from 'share-snippets/js/url/queryParse'
export {
truncate,
queryParse
}
Use Scss
new scss file.
// util.scss
@import 'share-snippets/scss/flex.scss';
@import 'share-snippets/scss/grid-flex.scss';