ramda/repl là dự án mã nguồn mở trên GitHub, viết chủ yếu bằng JavaScript, với 36 sao. The Ramda REPL
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
VÌ SAO CHƯA CÓ REVIEW
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
A URL (minus query string) that will be used with the url-shortening service to indicate where a sharable link will take user-agents. The current query string will be appended to this. This idea here is that you can have a REPL at http://your-ramda-repl.com#code and have the share feature redirect to http://ramdajs.com/repl#code should you wish.
"http://ramdajs.com/repl/"
initialValue
No
String
Used to provide the initial code in the input panel. It overrides the default behaviour, which is to use the content of the target element.
"identity(1)"
onChange
No
Function
This is called with the pre-compiled text from the input window whenever this text is changed. This can be used for updating the URL with a new query string, for example.
(code) => window.location.hash = URI.encode(code)
ramdaScript
Yes
Object - see below
A script description object used to defined where Ramda is sourced and how it is globally exposed
{
src : "//cdn.jsdelivr.net/ramda/latest/ramda.min.js",
global : "R"
}
scripts
No
Array of Objects - see below
A list of script description objects used to defined where other interesting libraries are sourced and how they are globally exposed
The keys ramdaScript and scripts are used to organise the dynamically loaded scripts that will be available to the REPL, such as Ramda, Sanctuary, and Ramda-Fantasy.
Ramda is loaded first, as it is presumed that the other libraries will require it to be present before they can be included.
Organising the scripts includes providing a reference to a URL where the script can be sourced - and adding in an optional configuration for how globals will be made available.
How the dynamically loaded scripts are made available can be defined using objects with the following keys:
Key
Required
Type
Description
Example
src
Yes
String
A URL referencing a JavaScript file
"//cdn.jsdelivr.net/ramda/latest/ramda.min.js"
global
Yes if exposeAs or expose are used
String
A name of a global the script will introduce
"R"
exposeAs
No
String
The name of a global that will act as an alias to the global introduced by the script
"RAMDA"
expose
No
Array of Strings
A list of method names on the global that you wish to expose globally. Given this list is not provided all methods found on the global will be exposed
[
"identity",
"map",
"filter"
]
Development
You will find a collection of npm run * scripts in package.json:
To run a simple server that will host the example/index.html file:
npm run server
This will start serving the repl at localhost:8080/example
To build the JavaScript bundle:
npm run build-js
To build the CSS bundle:
npm run build-css
Watch modes
To build the JavaScript bundle when files change (with sourcemap support):
npm run watch-js
To build the CSS bundle when files change:
npm run watch-css
To watch both:
npm run watch
Testing / Linting
To run tests:
npm test
To lint the JavaScript:
npm run lint
Minification
The CSS is quite small and is minified while it is built.
The JavaScript is not minified by npm run build-js or npm run watch-js so those operations can run a little faster.
Trang TopGit này là một snapshot — tab "Readme" hiển thị nguyên văn README của repo (đã bỏ link, giữ ảnh). Repo GitHub ở github.com/ramda/repl là nguồn chính thức.
ramda/repl có bao nhiêu sao?
ramda/repl có 36 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/ramda/repl. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
ramda/repl có tag gì không?
Bản đồng bộ chưa ghi nhận topic GitHub nào cho ramda/repl. GitHub topics hiển thị ở thanh bên phải trang repo — đó là nơi đáng kiểm tra nhất.
ramda/repl có website riêng không?
TopGit chưa ghi nhận URL trang chủ cho ramda/repl. Phần README ở tab phía trên thường có link demo, hoặc xem mô tả GitHub của repo.
ramda/repl còn đang phát triển không?
Commit gần nhất trên ramda/repl là 3.1 năm trước (theo timestamp GitHub). Repo có 13 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
ramda/repl viết bằng ngôn ngữ gì?
ramda/repl chủ yếu viết bằng JavaScript. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Đọc đầy đủ README ở tab phía trên.
Muốn nghe thêm một ý kiến về repl?
Hỏi một AI đọc được trang này — một cú bấm là có ngay nhận định về repl.