Skip to content
Scrype allows you to present code snippet in a interesting way
JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
dist commit Jul 1, 2019
src
webpack commit Jul 1, 2019
.gitattributes
.gitignore Initial commit Jun 20, 2019
LICENSE Initial commit Jun 20, 2019
README.md
index.js
package-lock.json
package-lock.json.2195310379
package.json commit Jun 29, 2019

README.md

Scrype

Live Demo

Scrype is a library that allows you to present code snippet in an interesting way

Installation

npm i scrype --save

Usage

import Scrype from 'scrype';

let options = {
  onProgress: (progress) => {
    ...
  },
  pixelPerStep: 3,
  position: 'top',
  codeContainerSelector:'#code-container',
  code: 'class DevJeff {\n\tconstructor () {\n\t  this.age = 22;\n\t  this.sex = \'F\'~~M\';\n\t  this.from = \'Hong Kang ~~~~ong\';\n\t}\n\tabout () {...}\n\tprojects () {...}\n\tblog () {...}\n}\n> let person = new DevJeff();'
}

new Scrype('#scrype', options)
You can’t perform that action at this time.